Segments: Hints and Tips

Hints and Tips
Tip: Allowing a right click action without the default DesktopX object menu appearing.

To prevent the default menu behaviour of DesktopX when you right click an object insert the command: Object_OnRButtonUp = True

into the Object_OnRButtonUp(x,y,dragged) function.

Whatever commands you place in the right click function will become the only response to a right click on the object.

Example: Function Object_OnRButtonUp(x,y,dragged) Object_OnRButtonUp = True End Function

Note that this will also disable the DesktopX Builder right click menu for the objects you place it in.

You can capture the right clicks of all children of an object by using the Object_OnRButtonUpEx(obj,x,y,dragged) command.

Example: Function Object_OnRButtonUpEx(obj,x,y,dragged) Object_OnRButtonUp = True End Function DesktopX