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. Function Object_OnRButtonUp(x,y,dragged) Object_OnRButtonUp = True End Function You can capture the right clicks of all children of an object by using the Object_OnRButtonUpEx(obj,x,y,dragged) command.
| Attributes | Values |
|---|
| rdfs:label
| |
| rdfs:comment
| - 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. Function Object_OnRButtonUp(x,y,dragged) Object_OnRButtonUp = True End Function You can capture the right clicks of all children of an object by using the Object_OnRButtonUpEx(obj,x,y,dragged) command.
|
| dcterms:subject
| |
| dbkwik:scratch-pad...iPageUsesTemplate
| |
| dbkwik:scratchpad/...iPageUsesTemplate
| |
| abstract
| - 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. Function Object_OnRButtonUp(x,y,dragged) Object_OnRButtonUp = True End Function You can capture the right clicks of all children of an object by using the Object_OnRButtonUpEx(obj,x,y,dragged) command. Function Object_OnRButtonUpEx(obj,x,y,dragged) Object_OnRButtonUpEx = True End Function
* Whatever commands you place in the right click function will become the only response to a right click on the object.
* Note that this will also disable the DesktopX Builder right click menu for the objects you place it in.
|