contextual menu

Klaus Major klaus at major-k.de
Mon Sep 27 05:41:55 EDT 2004


Bon jour Thierry,

> Hi,
>
> would like to build a contextual menu   ?
> How is the "usual way" to do it ?

Create a pop-up-menu button with all the"menupick" handlers
you need and move this button OFF screen...

I think making it visible will only work on a mac(?)

Then you can script any object where you want to pop up that button
when (right/control-) clicked on them:

## Parameters for "mouseup"
## 1 = left/"normal" click
## 2 = middle mousebutton
## 3 = right click = control-click on a mac
## If omitted then 1 is set as the default...

on mouseup quoi
    if quoi = 3 then
       popup btn "your popup button here"
    end if
end mouseup

will popup that button when the right mouse-button is clicked
= control-click on a mac...

Hope that helps...

> Thanks and regards,   thierry

Au revoir

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list