Using MouseUp Instead Of MenuPick |
|
mouseUp handler in the menu
button instead of a menuPick. It has to get the selectedText instead of
having it as a parameter, but apart from that it works identically but doesn't get
triggered when you set the menuHistory.
Compare:
Suppose this is an option button and it contains the values "Apple","Orange", and "Lemon". If you then want to initialize the menu to show "Orange" on the button and set it so that "Orange" appears under the mouse when you pop it up, you would do:on menuPick pChoice answer "The selection was:" && pChoice end menuPick on mouseUp put the selectedText of me into pChoice answer "The selection was:" && pChoice end menuPick
If the button contained theset the menuHistory of btn 1 to 2
menuPick handler, you'd get the answer dialog
appearing after it set the button. However if the button contained only the mouseUp
handler, no dialog would be displayed.
Posted on 11/30/2004 by Sarah Reichelt to the Use Revolution list
Expanded on 2/10/2006 by Ken Ray