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

Home » Public Forums » archive » dynamic pull down menus, removing items
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
dynamic pull down menus, removing items [message #40197] Tue, 13 July 2004 09:15
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hello All,

I would like to have a 'Window' pull down menu item on my GUI's menu
bar. In theory, this 'Window' would contain a list of image window
names where the number and names of windows can change while the GUI is
running. This menu is simply a way to show what windows are available
and which is the 'current' window.

The current selection is easy to show using the CHECKED_MENU option to
WIDGET_BUTTON (see http://www.dfanning.com/widget_tips/checkmarks.html)
(I must say, the check mark has an unexpected appearance on my Mac.)

Now, I can add buttons as more windows are opened...
http://www.dfanning.com/widget_tips/dynamic_menus.html

But how the heck to I get rid of an item if its window is closed?

I have tried

WIDGET_CONTROL, thisParticularButton, /Destroy

but it doesn't update the pull down menu. The only way I can get it to
update as I would like is to kill the entire GUI and re-realize it. Yuck.

I had the whole shebang in a list widget, but i was hoping to save real
estate by moving the list to a pull down menu.

Thanks,
Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cyclic array interfaces
Next Topic: Re: dynamic pull down menus, removing items

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

Current Time: Tue Dec 02 09:03:03 PST 2025

Total time taken to generate the page: 0.64439 seconds