DX Tutorial #3: Let's Create a Right-Click Menu
RomanDA's DX Tutorial Series
RomanDA's DesktopX Tutorials:
My goal is to make a set
of tutorials for DesktopX. If you have ideas on what you would like to
see, please email me at
[email protected]
| Lets make a RIGHT-CLICK menu | |
![]() |
Would you like to have a right-click menu that isn't the "standard" one that DX supplies when you export a widget? Ok, Read on...
The code for this isn't really all that hard. |
|
'--- Function to handle the RIGHT-Click
Function
Object_OnRButtonUpEx(obj,x,y,dragged) '--- Right Click Menu Creation Function ------- Sub CreateSectionMenu()
'-- Function to handle the results of the right-click menu action Sub
ExecuteSectionMenu(result,snum) |
There are a lot of things that can be done with this, things like SUB menus, etc. Maybe I will look into that at a later date. Its just a simple example
This script needs to be attached
to any object that you want to have the right-menu active.
This code is part mine, mostly
VAD_M's who is
quickly becoming the GOD of DX scripts!
![]() |
Enjoy, RomanDA AKA: David A. Roman http://romanda.wincustomize.com http://www.romanda.org [email protected] |

