Difference between revisions of "Dabo.ui.getMouseObject"
(Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.getMouseObject() </syntaxhighlight> == Description: == Incredibly handy function for interactive debugging. Allows t...")
Latest revision as of 14:21, 15 May 2020
Incredibly handy function for interactive debugging. Allows the developer to quickly grab a reference to any visual object in a live application.
Returns a reference to the object below the mouse pointer at the moment the command is issued.
This function is extremely useful for interactive development when testing a live application. Typically, a Command Window is opened from the running app, and the mouse is positioned over the object for which you want to get information. Then the following line is executed:
obj = dabo.ui.getMouseObject()
After that, you can inspect the state of that object by querying its properties, or you can modify the object by calling its methods or changing its properties.