Home »
Public Forums »
archive »
widgets xmanager and xpdmenu
Re: widgets xmanager and xpdmenu [message #1742 is a reply to message #1663] |
Fri, 18 February 1994 12:10  |
meinel
Messages: 14 Registered: February 1994
|
Junior Member |
|
|
In article <JAT.94Feb16164227@grizzly.water.ca.gov> jat@water.ca.gov (Jatinder Singh) writes:
>
> I have a large IDL application for which I would like to set
> up a menu interface.
First of all, use the compound widget menu tool - it makes things a
lot easier.
> My problem occurs with the submenus that I have for some of
> the menu selections. What I would like to do is have a different
> routine to handle events from a submenu.
Use /RETURN_FULL_NAME for the menu items. Then eventval will contain
the menu item name and event.value will contain the event item name
with the subitem name appended to it. Then use
CASE eventval OF
"Item1": CASE event.value OF
"Item1.Subitem1": do something
"Item1.Subitem2": do something else
ENDCASE
ENDCASE
The advantage of returning the full name is that subitems of different
menu items can have the same name.
Ed
|
|
|
Current Time: Sat Oct 11 19:06:53 PDT 2025
Total time taken to generate the page: 0.24073 seconds