Right click popup menu - Mouse x y position

G

Guest

Hi All,

I want to create a custom popup menu that actions on right click of the
mouse and appears on the same x y position.

I have heard of the api function that gets the x, y but i am unsure if this
could be used in conjunction with the x y of the position for the createmenu.
I'm guessing i could create a conversion for the 2 sets of data as the menu
would work in twips and unsure of the coordinates setup for the mouse.

It all sounds pretty big and therefore unsure of the response time as this
is something that would need to apear quickly after right click.

Can anyone think of any other posibilities for this? or someway that the API
and conversation would work quickly.

I'm pretty happy with coding it all but do not have the API to get the mouse
x y, so if anyone does have it would you be able to help me out with that
please?

Many thanks and regards,
Dave
 
K

kingston via AccessMonster.com

The On Mouse Down (Up) event returns the mouse position. However, you might
try using the built-in short-cut menu functionality. This would allow you to
create your own right-click menu.
 
G

Guest

I've wrote a function that will create the popup and found that if at the end
i enter:
"<MenuBarVarName>.showpop" rather than following it with coordinates it
shows where the mouse is.

My next issue is how do i link it to my right mouse click from application
load? Any ideas?

Many thanks,
Dave
 
K

kingston via AccessMonster.com

I'm sorry but I don't fully understand what you're trying to do. Short-cut
menus can be linked to specific controls via the Shortcut Menu Bar property.
So you could conceivably change this property for all of your forms, text-
boxes, combo-boxes, etc. I'm not sure how you would do this for an entire
application. HTH.

Dave said:
I've wrote a function that will create the popup and found that if at the end
i enter:
"<MenuBarVarName>.showpop" rather than following it with coordinates it
shows where the mouse is.

My next issue is how do i link it to my right mouse click from application
load? Any ideas?

Many thanks,
Dave
The On Mouse Down (Up) event returns the mouse position. However, you might
try using the built-in short-cut menu functionality. This would allow you to
[quoted text clipped - 22 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top