Can anyone tell me how to create custom right mouse button menus for use on my forms? Is there a simple way of doing this or does it involve API calls and such ?
I haven't messed with it, but there some stuff in the help documentation (for once, usually that doesn't help me at all). Do a search on "Displaying Pop-up Menus" and see if it helps. =)
~Melissa
sixsmithc,
This is quite simple.
All you have to do is, create a menu and give it any name like mnumain using the menu editor.
Create the items that you want to display on the popup as submenus in mnumain.
Write the code for all the menu items by going to the form and double clicking on the menu-item.
After having completed this,go back to the menu editor and uncheck the visible property of the top item(mnumain) in the menu.This will make it invisible at run time.
Now to invoke this,you trap a right click event in the mouseup event of the form.In the code you will write the following:
if button=2 then
popupmenu mnumain
endif
in case of difficulties mail me.
smash81,
smash81@eudoramail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.