Equinox Online Help - Language Reference - A to Z

Home

MouseObjectName

Applies to
SyntaxMouseObjectName
Action[Function] Returns the object currently under the mouse cursor.
ScopeOnly usable in form methods.
Notes

This returns the object name of the object currently under the mouse cursor. If the mouse cursor is not over any object, a null string is returned.

system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryMenus and mouse
See Also EnableCommand, MouseObject, MousePosition, Trigger
Example

The following example method (attached to a Not Busy event) detects which screen item the cursor is over and displays suitable help text.

Switch (MouseObjectName)
case "Picture"
StatusLine "Use the menu bar To assign a picture"
case "SaveButton"
StatusLine "Press this To save the record"
...
end switch