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

Home » Public Forums » archive » widgets xmanager and xpdmenu
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: widgets xmanager and xpdmenu [message #1742 is a reply to message #1663] Fri, 18 February 1994 12:10 Go to previous message
meinel is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: formated text entry fields
Next Topic: Re: [SUMMARY & Software] Tcl/Tk with IDL/Pvwave or Matlab

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

Current Time: Sat Oct 11 19:06:53 PDT 2025

Total time taken to generate the page: 0.24073 seconds