View Full Version : textfields updating on change
NateH 08-14-2006, 08:23 AM Any way other than using a scriptjob to run a procedure whenever a textField is changed? ive tried changeCommand (-cc) and it only runs if the field has changed AND the user hits enter, which is not the desired result. Any help would be great.
|
|
Sanctuary
08-14-2006, 07:28 PM
is that textField just a regular field in which you store/read some values ? or is it controling an attribute ? or is it controled by an attribute ?
NateH
08-14-2006, 07:31 PM
It's just a regular textField, in which the user types. I want to have 3 textFields that get added together and placed into a 4th textField so whenever the user types in one of the first 3, the 4th on shows all 3 added together.
Sanctuary
08-14-2006, 08:07 PM
i think your best bet will be to use a scriptJob attached to your UI, i can`t think of anything else right now ... :eek:
NateH
08-15-2006, 01:01 AM
Alrighty, thanks for the help. I was hoping not to have to use a scriptjob but it looks like ill end up doing that... Ill just be real carefull to have it clean up after itself.
Sanctuary
08-15-2006, 07:00 AM
that`s what i was saying ... attach it to a piece of UI (eg. your window) and it will be automatically deleted when you close the window
P.S.
check the -parent flag on the scriptJob command :buttrock:
CGTalk Moderation
08-15-2006, 07:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.