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

Home » Public Forums » archive » Re: Controling sensetivity on widget_button
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
Re: Controling sensetivity on widget_button [message #36638] Fri, 10 October 2003 06:53
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Controling sensetivity on widget_button
Next Topic: Re: MPFIT2DPEAK with constraints

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

Current Time: Sat Oct 11 00:52:16 PDT 2025

Total time taken to generate the page: 0.87725 seconds