OSX menubar with mouse button 3

Beat Cornaz B.Cornaz at gmx.net
Sat Nov 28 14:14:51 EST 2009


How can I have the buttons which make  up the OSX menubar, react to :

mouseDown pButtonNr

if pButtonNr = 3 then
-- my script
    pass MouseDown pButtonNr		
end if

end mouseDown

If set as a button of a menu group in the stackwindow it works fine,  
but set as OSX menubar, it does not work. The normal menuPick code  
works fine, but I need to trap the mouseDown (with pButtonNr = 3).

It seems that as soon as the buttons of the menu group are set to OSX  
style, a whole different game is played. But I don't see why.

Thanks & best,

Beat Cornaz







More information about the use-livecode mailing list