ScreenDim() - gives you the application screen dimensions
Allows you to find the Screen dimension
──────────────────────────────────────────────────────────────────────────────

Syntax

ScreenDim( @<nRows>, @<nCols> ) --> NIL

Arguments

<@nRows> - must be passed by reference. This variable will be assigned
the value of the number of rows on the screen, or when used with
MrDebug, the number of rows in the application window.

<@Cols> - must be passed by reference. This variable will be assigned
the value of the number of columns on the screen. When used with
MrDebug, this value will contain the number of columns in the
application window.

Returns

NIL - nothing of consequence.

Description

ScreenDim may be used to get the available rows and columns on the
screen. This function may be used to get the actual size of the physical
screen or appication output screen (if used with MrDebug).

MaxRow() and MaxCol() return the number of rows and columns of the
current window.

Notes

■ This function does not alter the cursor position.

Examples

■ This example shows different results:

nWindow1 := wOpen(10, 10, 20, 20)

? MaxRow() // would return 11
? MaxCol() // would return 11

ScreenDim(@nRow, @nCol)
? nRow // would return 25
? nCol // would return 80



Files: Library is MRWINDOW.LIB.