popup of menu (functionality not correct implemented...)
dburgun at dsl.pipex.com
Tue Nov 1 11:06:51 EST 2005
All you have to do is this:
function GetMenuItem theMenuItemName
put lineOffset(theMenuItemName,the text of button "popUp") into my myMenuItem
Then use it like this:
set the menuHistory of button "popUp" to GetMenuItem("TheMenuString")
All the Best
>MenuHistory is indeed is the function I need, but this doesn't work
>for buttons of type "popup".
>Furthermore it is very strange that you would have to supply a
>number instead of the text selected...
>I'm displaying data from a database, when a user clicks on a record
>he gets the data displayed and some of the data can be changed using
>pop-up menu's. So when a user clicks, I would first have to find the
>item in the list and set the menuhistory every time the user selects
>another record... Would be much easier when I could popup the menu
>with the text in a field...
>If it would work for a regular pop-up menu :-(
>Digital Media Partners bvba
>Tel. +32 (0)477 / 739 530
>Fax +32 (0)14 / 71 03 04
>On 1-nov-05, at 15:57, Scott Rossi wrote:
>>Recently, Ton Kuypers wrote:
>>>In the "old days", when I didn't know better, I was using SuperCard.
>>>I seem to recall there was a possibility to popup menu's with a basic
>>>What I mean is the user selected item 27 from a menu and the next
>>>time he opened the menu, the menu showed item 27 of the menu at the
>>>I think the command was popup menu "XXX" at the topleft of me with
>>>fld "menuresult" (or something like that...)
>>>In Revolution this works for a button of type "Option" but I need to
>>>use a regular pop-up button.
>>>Anybody any suggestions?
>>If I understand what you're asking, I believe you want the menuHistory
>>Tactile Media, Multimedia & Design
>>E: scott at tactilemedia.com
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>Please visit this url to subscribe, unsubscribe and manage your
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
More information about the Use-livecode