A Little Menu Issue
J. Landman Gay
jacque at hyperactivesw.com
Sat Jul 19 10:46:14 CDT 2008
J. Landman Gay wrote:
> It works the other way around. The selected menu item text is passed to
> the menupick handler. Then you can do whatever you want with it. Here's
> a sample button script for a popup button named "myMenuBtn":
> on mousedown
> popup "myMenuBtn"
> end mousedown
> on menupick pWhich
> put pWhich into theSelectedText
> -- now you have the user's choice; send it to the field, or whatever
> end menupick
Well, this is completely wrong, sorry, it was a major think-o. Obviously
your popup button is invisible. And the above isn't right for a visible
You are correct to put the mousedown handler into the field, which then
issues the "popup" command. The above menupick handler does go into the
button that is popped up.
Check the menuMousebutton property though, that may be the problem.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode