why a popup-menu does not open at a new defined mouseloc?

Sarah Reichelt sarah.reichelt at gmail.com
Sat Feb 27 20:42:15 EST 2010


On Sun, Feb 28, 2010 at 3:30 AM, G.W.Gaich <gwolfgang at gaich.de> wrote:
> Hi all,
>
> does anyone know why a popup-menu does not open at a new defined mouseloc?
>
>
> -- the mouse is at 101,105 in a card
>
> in an arrowkey-script of a field:
>     ....
> answer the mouseloc  --> 101,105
>       set the screenmouseloc to globalloc(the loc of btn "b")
> -- the loc of button "b" is at 120,170
>
> answer the mouseloc --> 120,170 --> ok
>
> -- in mousedown of btn "b" there is a popup
>
> send "mousedown" to btn "b"
>  ....
>
> -- the popup opens at 101,105
> -- not at 120,170


You don't show the actual script to popup the popup, but if you want
to specify it's location, you do so as a parameter to the popup
command.

I usually use:
    popup btn "Popup" at the mouseLoc
or
    popup btn "Popup" at the clickLoc

HTH,
Sarah



More information about the use-livecode mailing list