Re: How to make menu GRAY? [message #4170] |
Tue, 09 May 1995 00:00  |
rep2857
Messages: 28 Registered: December 1994
|
Junior Member |
|
|
In article <3ocaup$lmm@mirv.unsw.edu.au>,
Michael Feigin,ARC Research Fellow,AS,951231 <feigin@saturn.gas.unsw.EDU.AU> wrote:
>
> Dear colleagues,
>
> Does anyone know how to make GRAY (unavailable) points of a menu? I can't
> find it in the documentation. Meanwhile, it seems to be possible since system makes points of a main menu grayed when I call a modal dialog box.
> Any advice will be highly appreciated.
>
Use the "Widget_Control" command to do this. Assume you have a button
called data_button somewhere in your widget hierarchy declared like
this:
data_button = Widget_Button(base, Value='Data', UValue='data_button')
Just prior to realizing the widget hierarchy you can call the following
command to gray it out:
Widget_Control, data_button, Sensitive=0
During event processing you can call Widget_Control again and set the
"Sensitive" value to 1 to make the button available.
Widget_Control, data_button, Sensitive=1
Mike Schienle Hughes Santa Barbara Research Center
Home: mgs@visdata.com Coromar Drive, M/S B28/87
Work: rep2857@sbsun0010.sbrc.hac.com Goleta, CA 93117
Contract Employee. Will visualize data for large amounts of money.
|
|
|