Window

Set the default window properties for all Form components of the application.

WINDOW=uwindow(Properties)

Arguments

Properties—semi-colon delimited list of property-value pairs.

Window Properties
Physical Property Name Property
BackColor Background Color (BackColor)
ForeColor Foreground Color (ForeColor)
CellHeight CellHeight
LineSpace LineSpace
BackImage Background Image (BackImage)
HAlign Horizontal Alignment (Halign)
VAlign Vertical Alignment (Valign)
Hscale Horizontal Scaling (Hscale)
VScale Vertical Scaling (Vscale)
PreserveAspect Preserve Aspect Ratio (PreserveAspect)
Default value: None
File section: [application]

Description

Default properties defined here can be overridden by properties set declaratively and by the $windowproperties ProcScript function. For more information, see $windowproperties.

Setting the background color:

[application]
window=uwindow(backcolor=steelblue)

Setting the background image to a glyph:

[application]
window=uwindow(backimage=^I_OK)

Setting the background image to an image on the file system:

[application]
window=uwindow(backimage=@flower.jpg)

Note:  Although it is possible to specify an absolute path to an image, it is preferable to specify a relative path using the Images setting in the [paths] section.

Setting the background color and image, and the alignment and scaling properties of the background image.

window=uwindow(backcolor=blanchedalmond;backimage=@blue_banner.jpg;valign=top;halign=left;hscale=100;vscale=100)