Difference between revisions of "WCOLS()"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Screen Windows | Screen Windows | ||
Line 15: | Line 12: | ||
==See Also== | ==See Also== | ||
− | [[ACTIVATE WINDOW]], [[DEACTIVATE WINDOW]], [[DEFINE WINDOW]], [[HIDE WINDOW]], [[MOVE WINDOW]], [[WROWS()]], [[WEXIST()]], [[ | + | [[ACTIVATE WINDOW]], [[DEACTIVATE WINDOW]], [[DEFINE WINDOW]], [[HIDE WINDOW]], [[MOVE WINDOW]], [[WROWS()]], [[WEXIST()]], [[WONTOP()]], [[WOUTPUT()]], [[WVISIBLE()]] |
Line 27: | Line 24: | ||
<code lang="recital"> | <code lang="recital"> | ||
define window browse; | define window browse; | ||
− | from 2,2 to 12,43; | + | from 2,2 to 12,43; |
− | title "BROWSE Window"; | + | title "BROWSE Window"; |
− | color n/bg; | + | color n/bg; |
− | float; | + | float; |
− | shadow | + | shadow |
activate window browse | activate window browse | ||
?wcols("browse") | ?wcols("browse") | ||
Line 42: | Line 39: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Screen Windows]] | ||
+ | [[Category:Screen Windows Functions]] |
Revision as of 15:31, 1 June 2009
Class
Screen Windows
Purpose
Function to return the number of columns in a window
Syntax
WCOLS([<window-name>])
See Also
ACTIVATE WINDOW, DEACTIVATE WINDOW, DEFINE WINDOW, HIDE WINDOW, MOVE WINDOW, WROWS(), WEXIST(), WONTOP(), WOUTPUT(), WVISIBLE()
Description
The WCOLS() function returns the number of columns in a window. A window is an area of the screen designated for output and input. There is no limit to the number of defined windows. Windows are created with the DEFINE WINDOW command, and are activated with the ACTIVATE WINDOW command. With no parameter, the WCOLS() function operates on the active window. If no windows are active, the WCOLS() function returns a zero.
If a <window-name> is specified, the WCOLS() function returns the number of columns in that window. If the window specified does not exist, or is not active, the WCOLS() function returns a zero.
Example
define window browse; from 2,2 to 12,43; title "BROWSE Window"; color n/bg; float; shadow activate window browse ?wcols("browse") 40
Products
Recital Mirage Server, Recital Terminal Developer