WFormat() - Determines the usable area within a window
Determines the usable area within a window
──────────────────────────────────────────────────────────────────────────────
Syntax
WFormat( [<nTop>, <nLeft>, <nBottom>, <nRight>]
[, <nWindow>] ) --> nWindow
Arguments
<nTop>, <nLeft>, <nBottom>, <nRight> refer to the coordinates top,
left, bottom and right in which text output will appear inside the
specified window.
<nWindow> the window for which the format is to take place. if not
specified then the current window is assumed.
Returns
a numeric value identifying the window number that the action took place on
or -1 if an invalid window number was passed down.
Description
WFormat() allows you to setup margins for the window. Output will be
displayed relative to the margins of the window.
Notes
■ MrWindow will not display any text that you display using negative
nTop, nLeft coordinates. For example @ -1,5 SAY "Title" will not work
instead, you should give the window a title when you assign a box to
a window using WBox()
Examples
Files: Library is MRWINDOW.LIB.