WINDOW SET

WINDOW SET

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

WINDOW SET

Syntax

WINDOW SET (<option>) [window]

Modifies the individual attributes of opened windows.

Example

WINDOW OPEN <name>
WINDOW SET (label "Whatever Title you want to use")

Parameters

optionOptions that affect certain window attributes. Can be
[UN]AVAILABLE
BORDER color
[NOT] CLOSED
FILLCOLOR color
FONT expr
[NOT] FUNCTIONKEYS
[NOT] GOTFOCUS
LABEL expr
MOUSEPOINTER fileName
[NOT] LOSTFOCUS
[NOT] MESSAGES
[NOT] MODAL
PENCOLOR color
POINTSIZE expr
STATUSBARTEXT statusBarText
TABORDER BY setting

window

Window can be
name
The name of the window that you want to open. The software looks up name in the currently accessed directories in the usual way. A compiled WINDOW OPEN command using name contains the unambiguous name of the window (including a reference to an application directory) that was found at compile time.
(expr )
A character string, or an expression that evaluates to a character string, that is to be used at run time as the name of the window. The parentheses must be entered.
If neither name nor expr is specified, the current window is assumed.
OptionDescription
[UN]AVAILABLEIndicates if the application user can initiate a focus shift to the window.
BORDER colorSets the border color.
[NOT] CLOSEDIndicates if the specified event causes a callback.
FILLCOLOR colorSets the background color.
FONT exprSets the font.
FUNCTIONKEYS ON | OFFControls pre-defined accelerator keys.
[NOT] GOTFOCUSIndicates if the specified event causes a callback.
LABEL exprEstablishes the window’s label.
[NOT] LOSTFOCUSIndicates if the specified event causes a callback.
MESSAGES ON | OFFControls the display of help and error messages.
[NOT] MODALControls if the window is a modal window.
PENCOLOR colorSets the foreground color.
POINTSIZE exprSets the point size of the font.
TABORDER BY settingSpecifies how focus moves in the window. Can be TABINDEX (based on the form field’s sequence number), FIELDNUM (based on field identification number), ROWCOL (left to right), or COLROW (top to bottom).

Comments

The attributes changed are only applicable to an opened window. After the window is closed, all attributes set are lost. Opening subsequent windows will not inherit attributes set to previous windows.

If there is no opened window, the attribute settings are ignored.

The WINDOW SET command changes certain window attributes whose default states are defined in the Object Dictionary.

See Also

The Status Bar

Was this article helpful?
5 out of 5 stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese