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

Home » Public Forums » archive » Disabling buttons
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Disabling buttons [message #55339] Mon, 20 August 2007 01:49 Go to next message
Tal is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
Tal is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: End of File-Error message in simple readf routine - What's the problem?
Next Topic: Rick Towler Please come in!

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

Current Time: Wed Oct 08 19:05:18 PDT 2025

Total time taken to generate the page: 0.00513 seconds