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

Home » Public Forums » archive » Re: sensitivity of individual droplist values?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: sensitivity of individual droplist values? [message #64332 is a reply to message #64330] Fri, 19 December 2008 14:54 Go to previous messageGo to previous message
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
I don't know of a way to gray out one or more selections
in the WIDGET_DROPLIST menu, but you do have control over
the list of items that are displayed.

It requires a bit more flexible programming, but you can
keep a "full list" of menu items, and a second, pared-down
list, that is appropriate at the moment. The pared-down
list can be put in place with something like

widget_control, DroplistID, SET_VALUE=list

Once you make this command, the user should see a new list.
The minor challenge for you with this approach will be handling
the events. The event structure tells you the event.index
of the item that has been selected. If you change
from the full list to the short list, it's up to you to
determine which option the user selected in the short list.

M. Katz
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: GPULib 1.0.6: GPU arrays getting zeroed once again
Next Topic: Re: SkippySky : New Astronomy weather forecast website

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

Current Time: Thu Oct 09 14:35:05 PDT 2025

Total time taken to generate the page: 1.60116 seconds