contextual menus on Windows - can't select items with left mouse button
Terry Judd
tsj at unimelb.edu.au
Wed Apr 19 22:25:38 EDT 2006
Doh - that'd be because the menuMouseButton property was set to 3
instead of 0.
Terry...
> Ello,
>
> I'm popping up contextual menus in a mouseDown handler – like so...
>
> (much simplified)
>
> on mouseDown theButton
> if theButton = 3 then
> displayContextualMenu
> end if
> end mouseDown
>
> on displayContextualMenu
> popup btn "myContextualMenu" of stack "myMenus"
> end displayContextualMenu
>
> ...this works as expected, the menu pops up and you can select an item
> - well sort of, clicking the left mouse button has no effect whereas
> if you click the right mouse button the menuPick handler in the button
> is triggered and the handler proceeds.
>
> Clearly I want users to be able to make selections with the left mouse
> button as well as the right - as you can with any of the IDE stacks if
> you have the 'contextual menus work in Revolution windows' option
> selected in the 'General' panel of the Rev preferences window. So,
> what am I missing?
>
> TIA,
>
> Terry...
>
> Dr Terry Judd
> Lecturer in Educational Technology (Design)
> Biomedical Multimedia Unit
> Faculty of Medicine, Dentistry & Health Sciences
> The University of Melbourne
> Parkville VIC 3052
> AUSTRALIA
>
More information about the use-livecode
mailing list