Disabling buttons [message #55339] |
Mon, 20 August 2007 01:49  |
Tal
Messages: 26 Registered: August 2007
|
Junior Member |
|
|
Hi everybody,
I'm trying to disable a regular button in a GUI as long as another non-
exclusive button (in the same GUI) is not pressed. cannot find the way
to do it.
I realize that the event generated by selecting the non-exclusive
button is the key to doing that. but the disabling itself is still a
mystery.
Any ideas?
Cheers, Tal
|
|
|
Re: Disabling buttons [message #55429 is a reply to message #55339] |
Mon, 20 August 2007 05:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Tal writes:
> using the PUSHBUTTON_EVENTS keyword in widget_button.
> if any of you have other suggestions - please do.
Typically, you disable a button by making it insensitive:
Widget_Control, buttonID, Sensitive=0
Setting SENSITIVE=1 will turn it back on.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Disabling buttons [message #55434 is a reply to message #55339] |
Mon, 20 August 2007 03:32  |
Tal
Messages: 26 Registered: August 2007
|
Junior Member |
|
|
I think i got it...
using the PUSHBUTTON_EVENTS keyword in widget_button.
if any of you have other suggestions - please do.
cheers
|
|
|