Identifies the control hovered over with the mouse cursor.
// Display the name of the hovered controls in a trace
// -- Initialization code of window
// Take the window and the window controls into account
Event(Hover, "*.* ", 512)
// -- "Hover" procedure
PROCEDURE HoverOver()
Trace(ControlOver())
Syntax
<Result> = ControlOver([<Invisible Controls> [, <Hovered Window>]])
<Result>: Character string
- Name of the control, column or window hovered over with the mouse cursor.
- Empty string ("") if no control is hovered over with the mouse cursor.
<Invisible Controls>: Optional boolean
- True if the invisible controls must be taken into account.
- False (by default) if the invisible controls must not be taken into account.
<Hovered Window>: Optional boolean
- True if the name of the window must be returned when no control is hovered over with the mouse cursor,
- False (default) if an empty string must be returned when no control is hovered over with the mouse cursor.
Remarks
Control hovered over with the mouse cursor
- If several controls are hovered over with the mouse cursor, the name of the control with the highest Z-order position is returned (which means the name of the control in the foreground).
- If a table column is hovered over with the mouse cursor, the name of the column is returned.
- The controls not found in the active plane are considered as being invisible.