Behavior of edit_box

Discussion in 'AutoCAD' started by Marcel Janmaat, Dec 23, 2004.

  1. Hello there,

    If I type-in some charakters in an edit_box, and then after that click on a
    button wich should call a different dialog, the actions (action_tile)
    related to the edit_box are being handled first. Then I'd have to click on
    the same button again to call the different dialog. (the action is to
    change the first character to uppercase and the rest to lower case in the
    edit_box)

    This is more or less understandable because typing some characters in an
    edit_box wil not trigger an action. Allthough giving an enter after typing
    the characters did change the characters, but did'nt solve the problem.
    Because still I had to click on the button twice to popup the different
    dialog.

    Does this sound familliar to anyone? I hope I'm making any sense.

    M
     
    Marcel Janmaat, Dec 23, 2004
    #1
  2. Marcel Janmaat

    Rudy Tovar Guest

    (action_tile "edit1" "(validate_value)")
    (action_tile "button1" "(call_button1)")

    (defun validate_value (/ val)
    (setq val (strcat (strcase (substr $value 1 1)) (substr $value 2 (strlen
    $value))))
    (set_tile $key val)
    (princ)
    )


    (defun call_button1 (/)

    ;Call Dialog or what ever, check,etc.

    (princ)
    )

    --
    MASi
    Copyright 2004 by Cadentity
    www.Cadentity.com
    Autodesk
    Authorized Developer
     
    Rudy Tovar, Dec 23, 2004
    #2
  3. Marcel Janmaat

    Rudy Tovar Guest

    My correction...

    (defun validate_value (/ val)
    (setq val (strcat (strcase (substr $value 1 1)) (strcase (substr $value 2
    (strlen $value)) t)))
    (set_tile $key val)
    (princ)
    )
    --
    MASi
    Copyright 2004 by Cadentity
    www.Cadentity.com
    Autodesk
    Authorized Developer
     
    Rudy Tovar, Dec 23, 2004
    #3
  4. Thanx for the input.
    I'm not sure if this is the answer.
    As soon as I've got some time I'm gonna check it out.
    Thanx again.
    M
     
    Marcel Janmaat, Dec 28, 2004
    #4
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.