Re: sensitivity of individual droplist values? [message #64373 is a reply to message #64330] |
Tue, 23 December 2008 02:25  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Dec 20, 2:37 am, Kathleen <101ferr...@gmail.com> wrote:
> Thank you M.Katz. That is what I was afraid of. That method certainly
> requires a bit more work than I was hoping to contribute to a single
> widget. Especially since I have over 50 widgets in my application and
> several droplists that would require this modification. Might have
> been easier to handle if the last item was always the one to drop off
> the list. Unfortunately, that is not the case. If anyone has any other
> ideas, I would love to hear them.
Hi Kathleen,
If you can get away with using a menu bar rather than a droplist, it
makes desensitizing subwidgets a whole lot easier.
Something like this:
TLB = Widget_Base(/Col, MBAR = MBAR)
File = Widget_Button(MBAR, Value = 'File')
Frog = Widget_Button(File, Value = 'Frog')
Womble = Widget_Button(File, Value = 'Womble', $
Sensitive = 0)
Cabbage = Widget_Button(File, Value = 'Cabbage')
If you've got over 50 widgets, it might require a whole lot of
rewriting in your case, though. Plus, you can't control where in the
widget your menu bars appear.
There's also the option of using CW_PDMENU which I haven't really
delved into myself, but my experience with IDL functions that begin
with 'CW_' leads me to believe that a *lot* of headaches might lie
down that path...
Best of luck!
Chris
|
|
|