Page 1 of 1
Popup Menu
Posted: Fri Nov 08, 2013 2:46 pm
by devinst
Is there a way to have a menu pop up when a right mouse click is executed on a field when the field does not exist in a grid? Thanks.!!!
Re: Popup Menu
Posted: Fri Nov 08, 2013 3:12 pm
by Scott Klement
How do you right-click on a field that doesn't exist?
Re: Popup Menu
Posted: Fri Nov 08, 2013 4:59 pm
by devinst
That would be a great trick for sure. But the field does exist, it just does not exist 'in a grid'. It is just placed on the form. Thanks.!!
Re: Popup Menu
Posted: Mon Nov 11, 2013 11:36 am
by devinst
Any advice on this? Thanks..!!
Re: Popup Menu
Posted: Mon Nov 11, 2013 11:50 am
by Scott Klement
This is not going to be as simple as it is in a grid.
You could possibly handle this with some JavaScript code. The onclick event will fire for a right-click, and you'll need to interrogate the event properties to determine if it's a right-click or a left-click.
You would need to have a hidden menu that you dynamically show by moving the menu (changing it's left/top properties) and unhiding it. Then, you would have to hide it again after a menu item was taken, or when the user clicks somewhere else outside of the menu, etc.