comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Sensitive options in cw_form
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Sensitive options in cw_form [message #34873] Tue, 29 April 2003 10:02 Go to previous message
jimby is currently offline  jimby
Messages: 4
Registered: August 2002
Junior Member
In the following example program, I would like to make label3 and
label4 insensitive if 'opt2' were selected from the droplist, and
sensitive if 'opt3' were selected from the droplist. I tried
accessing the IDs from the call to cw_form, but I couldn't get those
IDs until I created an action by pressing 'Cancel' or 'Label'. I
thought by using these IDs, I could someone do this. Ideas?

Thanks,
Jim


pro test

formdesc = ['0, droplist, opt1|opt2|opt3,label_left=Options:,
set_value=0 ', $
'0, text, , label_left=label1: , width=15', $
'0, text, , label_left=label2: , width=15', $
'0, text, , label_left=label3: , width=15', $
'0, text, , label_left=label4: , width=15', $
'1, base, , row', $
'0, button, Cancel, quit', $
'0, button, Label, quit']

textform = cw_form(formdesc, /column,title = 'Label',IDS=ids)

end
[Message index]
 
Read Message
Read Message
Previous Topic: _EXTRA inheritance crashing IDL
Next Topic: file_info bug

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:29:56 PDT 2025

Total time taken to generate the page: 0.95373 seconds