Re: Controling sensetivity on widget_button [message #36638] |
Fri, 10 October 2003 06:53 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nuno Oliveira writes:
> Greetings. I would like to make you a question that a presume to be very
> simple and easy to you to answer.
>
> In tutorials, about keyword SENSITIVE, I see that "if SENSITIVE is zero, the
> widget becomes insensitive. If nonzero, it becomes sensitive" But doesn't
> tell how can I control the value, how can I give it the value zero. I tried
> to do that with WIDGET_CONTROL, button, /SENSITIVE thinking that his value
> would change to the opposite (like if /SENSITIVE could only have the values
> zero and one, insensitive and sensitive) but that didn't work. How you
> manipulate sensitivity of buttons?
Widget_Control, button, Sensitive=0
Widget_Control, button, Sensitive=1 (or, same thing) $
Widget_Control, button, /Sensitive
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|