Equinox Online Help - Language Reference - A to Z

Home

MouseObject

Applies to
SyntaxMouseObject NameItem, IterationItem
Action[Statement] Returns the object currently under the mouse cursor and its iteration.
ScopeOnly usable in form methods.
Notes

This returns the object name of the object currently under the mouse cursor in NameItem. If the mouse cursor is not over any object, a null string is returned. The object's iteration number is stored in IterationItem.

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

CategoryMenus and mouse
See Also EnableCommand, MouseObjectName, 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 in another window if the cursor is not in the repeat block.

MouseObject objname, iteration

if objname <> "" And iteration = 0 Then
GroupFindRecord "HelpWindowGroup", EQ, objname
end if