Finding the menu item that has been right-clicked on

Ivan Wong ivan_wongwh at yahoo.com.sg
Tue Sep 27 13:54:32 EDT 2005


Hello all,

Does anyone know if there is a way of identifying the 
menubar menu item that has been right-clicked on?

My "on mousedown" handler can trap the right-click, 
but I would like to know which item in the menu was
clicked.  

-- Script in button "dropdown" of group "menubar1"
on mousedown theButton
  if theButton = 3 then -- Right-click
    -- How can I tell which item in btn "dropdown" was
              
    -- right-clicked?
  end if
end mousedown


Would anyone know if this is possible?


thanks in advance,
Ivan Wong

Send instant messages to your online friends http://asia.messenger.yahoo.com 



More information about the use-livecode mailing list