Windows

Defines window objects. A window is a user interface object that is the basic building block for creating an interface, because all user interaction occurs through windows. Windows can be manipulated in almost limitless combinations to build a user interface to the most complex application.

Establishing a Window

Call up the Development Center with the DC command, select WINDOWS from the OBJECTS drop-down menu, and use the tools of the Development Center to define the desired window. The Development Center calls up the Screen Painter for you and automatically CREATEs the window. Another way is to "paint" the window by calling up the Screen Painter directly:

window define winname [in dirname]

The Screen Painter adds appropriate entries to the Windows entity set thus defining the window.

When you are satisfied with the window, exit the Screen Painter, and answer OK to the prompts to save the window.

Fields of Windows Entity Set

Attributes

Description

WinName

Name of the window

WNum

Identification number of the window

Row, Col

Position of the window (characters)

Wdth, Hght

Size of the window  (characters)

DM

Display mode of the window

BC

Fill (background) color of the window (pre-defined)

FC

Pen (foreground) color of the window (pre-defined)

Fill

Fill character for blank spaces in the physical window

Bord   

Whether the window has a border

BordDM

Display mode of the window border

BordFC

Pen (foreground) color of the window border (pre-defined)

BordBC     

Fill (background) color of the window border (pre-defined)

BordDefault  

Characters for a text-class window's border

DirName

Application directory location of the window

WinType

User-assigned classification for the window

WdgBorderStyle

The type of border the window has

WdgCaption

Whether the window has a caption bar

WdgResize

Whether the window can be resized

WdgMinimize

Whether the window can be minimized

WdgMaximize

Whether the window can be maximized

WdgSysMenu

Whether the window has a system menu

WdgPSWdth, WdgPSHght

Logical size of the window (characters)

WdgPSRow, WdgPSCol

Position of the physical window with regard to its logical dimensions

WdgModal

"Modality" of the window

WdgScrollBars

Whether the window has scroll bars

WdgClass

Class ("type") of window

WdgSubClass

Subclass of window

WdgRow, WdgCol

Position of the window in its parent (twips)

WdgWdth, WdgHght

Physical size of the window (twips)

WdgFont, WdgFontSize

The font and point size to be used when displaying text in the window

WinOwnerName

Name of the window's parent

WinOwnerDirName

Application directory location of the window's parent

WdgAlwaysOnTop

Whether the window must always appear atop other windows

WdgFCRed, WdgFCGreen, WdgFCBlue

Pen (foreground) color of the window (custom blended)

WdgBCRed, WdgBCGreen, WdgBCBlue

Fill (background) color of the window (custom blended)

WdgLostFocus

Whether the window responds to a Lost Focus event with a callback

WdgGotFocus

Whether the window responds to a Got Focus event with a callback

WdgClosed

Whether the window responds to a Closed event with a callback

WdgHMargin, WdgVMargin

Interior margins of the window (twips)

WdgMinimized

Whether the window has the minimized state

WdgMaximized

Whether the window has the maximized state

WdgMoved

Whether the window has the moved state

WdgResized

Whether the window has the resized state

WdgRestored

Whether the window has the restored state

WdgLabel

The text of the window's caption

WdgIcon

The icon used to represent the minimized window

WdgMove

Whether the window can be moved

WdgAutoSize

"Autosize" status of the window

HMargin, VMargin

Interior margins of the window (characters)

WdgAvailable

"Availability" of the window for end-user interaction

WdgTag

Alphanumeric identifier for the window

WdgStyle

Style of window

ObjectKey

A unique identifier assigned by the Development Center