more dcl/lisp help...

Discussion in 'AutoCAD' started by aaron weissner, May 14, 2004.

  1. i want to add a beep to my dialog box when the character limit in the edit
    box is reached... i was thinking if i could create a reactor to check the
    (setq editbox1 (get_tile "editbox1")) since it returns the runtime value of
    the tile in a string... (strlen "editbox1") and when it reaches say 8 it
    beeps the pc... is this possible...
     
    aaron weissner, May 14, 2004
    #1
  2. aaron weissner

    Devin Guest

    Checking the max is a function of the edit box in ObjectDCL which can be
    found at www.objectdcl.com

    Devin
     
    Devin, May 14, 2004
    #2
  3. can anything be done in dcl without objectDCL???
     
    aaron weissner, May 14, 2004
    #3
  4. aaron weissner

    Devin Guest

    You would have to track the text length being entered, and I don't remember
    dcl having that ability. It just works off of action_tile's, the following
    from the docs explain the text box action_tile:

    If edit1 is a text box, the action expression in the following action_tile
    call is evaluated when the user exits the text box:
    (action_tile "edit1" "(setq ns $value)")So you can see that the text value
    and what you enter is not accessable until after you leave the text box and
    not during edit.



    Sorry,

    Devin
     
    Devin, May 14, 2004
    #4
  5. aaron weissner

    Jürg Menzi Guest

    aaron

    Nope... use VBA

    Cheers
     
    Jürg Menzi, May 14, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.