mouseover()

Function group Execute on client Platform(s)
Mouse NO All

Syntax

mouseover(constant)

Description

Returns information about the mouse position defined by a predefined constant at the instant the function is evaluated.

The function only works in an "open" user-defined window (not reports or searches). Moreover, it returns references only for fields and not background objects (text and graphic objects).

The mouse position is returned in a variety of ways depending on the constant you use. You can use the following constants:

kMItemref returns a reference to the object under the mouse. The window instance itself can be returned as item 0 of the window.
kMCharpos returns the nth character in an edit field.
kMLine returns the line number for a list.
kMPLine returns the line of the parent list the mouse is over.
kMHorz returns the horizontal position of the mouse relative to the topmost open user-defined window; if no user-defined window is open, returns the horizontal position of the mouse relative to the Omnis application window
kMVert returns the vertical position of the mouse relative to the topmost open user-defined window; if no user-defined window is open, returns the relative position to the Omnis application window