I haven't tested this, but it sounds as if the selection is being set AFTER the menuPick event.
Try checking the parameter passed to menuPick - that will give you the name of the selected menuItem and you could use lineOffset to find the line number. Alternatively, try reading the menuHistory. I have only used this for setting a popup, but it deals with line numbers rather than text. Cheers, Sarah > > Rev 1.1.1b1 on Mac iBook OS 9.2 and Mac PowerBook 3400 OS 8.6 > > Make a new stack, new menubar using the menu manager, a new menu > with two menu items. Check the "Set as Menu Bar on Mac OS" box. Set > the script of the menu to: > > on menuPick > put the selectedLine of me > end menuPick > > Now select the first item: message says "line 1 of button 3". Select > the second item: message says "line 1 of button 3". Select the second > item again: message now says "line 2 of button 3". Reselecting the > first item now says "line 2 of button 3". > > It takes two tries to get the right selection information; I'm pretty > sure that is a bug. > > Now unset the "Set as Menu Bar on Mac OS" box. The menu now works properly! > > A standalone using the Mac menu behaviour shows the same behaviour. > > (All I wanted was to put a checkmark in front of the selected menu item) > > > > -- > Michael J. Lew > > Senior Lecturer > Department of Pharmacology > The University of Melbourne > Parkville 3010 > Victoria > Australia > > Phone +613 8344 8304 > > ** > New email address: [EMAIL PROTECTED] > ** > _______________________________________________ > improve-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/improve-revolution > _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
