Re: Question. CW_PDMENU [message #11533] |
Thu, 23 April 1998 00:00 |
Peter Mason
Messages: 145 Registered: June 1996
|
Senior Member |
|
|
On Wed, 22 Apr 1998, Bill Eaton wrote:
> Is it possible to make CW_PDMENU (with kwd MBAR) silent? That is the
> button appears half bright and is temporarily inoperable. Is there
> perhaps an alternative program which will do this?
You can do this with the "button" IDs that cw_pdmenu returns through its
optional IDS keyword-parameter.
i.e., my_menu_id=cw_pdmenu(..., IDS=my_menu_button_ids)
Once you've got these, you can desensitise the whole menu with:
widget_control,my_menu_button_ids(0),sens=0
or you can desensitise actual menu items with something like:
widget_control,my_menu_button_ids(2),sens=0 ;desensitise 2nd item
Of course, you'll have to keep the menu button IDs handy (along with your
widget program's other "persistent" variables) so that you can change states
later on.
Peter Mason
|
|
|