Behavior of edit_box
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Behavior of edit_box

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Marcel Janmaat
Guest





Posted: Fri Dec 24, 2004 2:54 am    Post subject: Behavior of edit_box Reply with quote

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

Back to top
Rudy Tovar
Guest





Posted: Fri Dec 24, 2004 3:10 am    Post subject: Re: Behavior of edit_box Reply with quote

(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
"Marcel Janmaat" <m.janmaat@hiensch.nl> wrote in message
news:41cb3f77$1_1@newsprd01...
Quote:
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
Back to top
Rudy Tovar
Guest





Posted: Fri Dec 24, 2004 3:14 am    Post subject: Re: Behavior of edit_box Reply with quote

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
"Marcel Janmaat" <m.janmaat@hiensch.nl> wrote in message
news:41cb3f77$1_1@newsprd01...
Quote:
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


Back to top
Marcel Janmaat
Guest





Posted: Wed Dec 29, 2004 1:45 am    Post subject: Re: Behavior of edit_box Reply with quote

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

"Rudy Tovar" <Rudy@CadentityNoSpam.com> schreef in bericht
news:41cb4265$1_3@newsprd01...
Quote:
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
"Marcel Janmaat" <m.janmaat@hiensch.nl> wrote in message
news:41cb3f77$1_1@newsprd01...
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


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB