WMode() - Controls movement of windows
Controls movement of windows
──────────────────────────────────────────────────────────────────────────────


Syntax

WMode( <lTop>, <lLeft>, <lBottom>, <lRight> ) --> nError

Arguments

<lTop> a logical value .T. allows the window to move over the top
border, .F. keeps the window inside the border

<lLeft> a logical value .T. allows the window to move over the left
border, .F. keeps the window inside the border

<lBottom> a logical value .T. allows the window to move over the bottom
border, .F. keeps the window inside the border

<lRight> a logical value .T. allows the window to move over the right
border, .F. keeps the window inside the border

Returns

WMode() returns a numeric 0 is successful, otherwise if unsuccessful
returns a -1

Description

WMode() may be used to change the parameters of the borders that a window
may cross over. By default WMode is set to .F.

Notes

■ When running MrDebug with the application screen in a window,
WMode()is always set to WMode(.F., .F., .F., .F.) i.e. no window may
move outside the border. When running with the application screen in
full screen mode, WMode() can be set so that windows area able to
move outside of the screen borders.

Examples

■ The following example allow windows to scroll off the top border

WMode( .F. )


Files: Library is MRWINDOW.LIB.