MROW( ) Function

See Also

Returns the row position of the mouse pointer in the main Visual FoxPro window or in a user-defined window.

Syntax

MROW([cWindowName [, nScaleMode]])

Returns

Numeric

Arguments

cWindowName

Specifies the name of a window whose mouse-pointer row position MROW( ) returns.

nScaleMode

Specifies the unit of measurement for the value MROW( ) returns. The settings for nScaleMode are:

nScaleMode Description
0 (Default) Foxels. A foxel is equivalent to the average height and width of a character based on the current font of the form in which an object is contained. Foxels are useful in developing cross-platform applications for character-based and graphical platforms.
3 Pixels. A pixel is the smallest element that can be displayed on a screen or printer. Pixels are screen-dependent.

Remarks

MROW( ) returns the main Visual FoxPro window row position of the mouse pointer if there is no active user-defined window and you omit the optional argument.

MROW( ) returns the mouse-pointer row coordinate relative to the active user-defined window if there is an active user-defined window and you omit the optional argument. MROW( ) returns a value of –1 if the mouse pointer is positioned outside the user-defined window or if no mouse driver is loaded and there is no output window.

nScaleMode

Specifies the unit of measurement for the value MROW( ) returns. The settings for nScaleMode are:

nScaleMode Description
0 (Default) Foxels. A foxel is equivalent to the average height and width of a character based on the current font of the form in which an object is contained. Foxels are useful in developing cross-platform applications for character-based and graphical platforms.
3 Pixels. A pixel is the smallest element that can be displayed on a screen or printer. Pixels are screen-dependent.