why a popup-menu does not open at a new defined mouseloc?
GWolfgang at gaich.de
Sun Feb 28 07:40:27 EST 2010
Hi Sarah, Zryip,
thank you for your suggestions.
But I know the ways to popup a popup button.
I experimented a while with the mouseloc and realized that it's not true
that the popup opens at the mouse location when you set the mouseloc
with e.g. 'set the screenmouseloc to globalloc(the loc of btn "b")'.
In the dictionary:
If no location is specified, the menu's top left corner is at the mouse
And I wondered why the popup command does not accept the new mouse
Have a nice day
Am Sonntag, den 28.02.2010, 11:42 +1000 schrieb Sarah Reichelt:
> 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
> I usually use:
> popup btn "Popup" at the mouseLoc
> popup btn "Popup" at the clickLoc
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode