Dabo.ui.getMouseObject

From Dabo Wiki
Jump to: navigation, search

Signature:

dabo.ui.getMouseObject()

Description:

Incredibly handy function for interactive debugging. Allows the developer to quickly grab a reference to any visual object in a live application.

Returns:

Returns a reference to the object below the mouse pointer at the moment the command is issued.

Comments:

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.