I am using the popup() function to display a menu, but I would like to be able to control the position of the menu - I am trying to get the popup menu positioned somewhere close to where the mouse is, the "x" coordinate being fixed at "0". Can anyone suggest how I should do this? Here is the sort of thing I have been trying:
Code: Select all
function main_popup(m,x,y)
{ mnu=getMenuByName(m);
mnu[1]=y;
mnu[2]=x;
popup(m);
}
I have tried various attempts to use "setpos()" and "spos()" but this was based largely on guesswork.
popup() does indeed have an optional second parameter which pops the menu up "close" to the current mouse pointer, but this doesn't work for me as the cursor is in a different frame at the time that I want to call popup().
Can anyone suggest how to "popup" at a given coordinate position?

And/or is there a user manual somewhere, which documents the functions (API) ?
Many thanks, in advance.[quote][/quote]