Get Popup submenu name
JVTONGEL at janbe.jnj.com
JVTONGEL at janbe.jnj.com
Wed Nov 13 11:28:00 EST 2002
Thanks
this works
-----Original Message-----
From: Jan Schenkel [mailto:janschenkel at yahoo.com]
Sent: Wednesday, 13 November 2002 13:21
To: use-revolution at lists.runrev.com
Subject: Re: Get Popup submenu name
--- JVTONGEL at janbe.jnj.com wrote:
> Dear
>
> yesterday evening I was trying to get the
> value(or name) of a submenu of popup list.
> let me explain it a litle bit
>
> I have a Popup menu which is named Platform
> when you klik on it you get a list of platforms
> f.e. - PC
> - Linux
> - Macintosh
>
> now when a user slects on of the items
> I want to put this as a text i a Global or Local var
>
> but i dont seem to find any function or command in
> the dicionary
> that does something like this
>
> where am i going wrong?
>
RR sends a 'menuPick' event upon selection of an item
in a menu button, so I suggest you look it up in the
Transcript language dictionary.
Set the script of your popup button to this:
on menuPick pWhichItem
global gSomeGlobal
put pWhichItem into gSomeGlobal
end menuPick
If you want to know which item is currently selected,
have a look at the 'menuHistory' property in the
Trascript language dictionary.
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time."
(La Rochefoucauld)
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20021113/8088dcc2/attachment.html>
More information about the use-livecode
mailing list