|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
|||
|
|||
Action attached to the label of a variable
Hi, I want to set a value to a variable of a dialog box when the user
clicks on the label of the variable, I don't want to have other dialog like the option show-input-tool does, the value straight in the field. Any suggestion ? Thanks |
#2
|
|||
|
|||
Re: Action attached to the label of a variable
Hi,
I'm not sure if this is what you're looking for, but the keyword :before-input allows you to execute some code when the user clicks on the variable. For example, in the following code, clicking the label of the variable will set its value to the value of the global variable *my-var*: Code:
(defvar *my-var* 24) ;; define global variable (sd-defdialog 'my_test :variables '((var1 :value-type :integer :before-input (setq var1 *my-var*)) (var2 :value-type :integer :after-input (setq *my-var* var2)) )) Does this help? Good luck! andy
__________________
Andy Poulsen AI MAXTools: Dream. Design. Done. It's that easy! Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+! See them in action at www.ai-maxtools.com and then try them for yourself -- FREE! |
#3
|
|||
|
|||
Re: Action attached to the label of a variable
Thanks, it works!!!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|