Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<windowcontrol >

<bounds > ... </bounds>

Defines the position of the control relative to the window. Do not use if <anchored> is defined.

<anchored >

Defines the position as anchored to the window or other window controls. Do not use if <bounds> is defined.

<to > ... </to>

Specify the control to use for all four anchors. If not defined, anchors are relative to the parent window.

<position > ... </position>

The shorthand notation position (above, aboveleft, aboveright, below, belowleft, belowright, left, lefthigh, leftlow, right, righthigh, rightlow, insidetop, insidetopleft, insidetopright, insidebottom, insidebottomleft, insidebottomright, insideleft, insideright, over)

<offset > ... </offset>

Two numbers separated by a comma, defining the horizontal and vertical offset based on the position attribute specified, in display units

<width > ... </width>

Attribute only. The width of the control, in display units

<height > ... </height>

Attribute only. The height of the control, in display units

<left >

<parent > ... </parent>

Specify the control for this anchor

<relation > ... </relation>

"absolute" (default), "relative" or "current"

<anchor > ... </anchor>

The anchor edge to use from the parent control. ("left", "top", "right", "bottom") If not defined, the opposite anchor on the parent will be used (if relation is “relative” or “current”) or the same anchor on the parent will be used (otherwise).

<offset > ... </offset>

An offset to the calculated anchor position.

If a percentage is specified, then a value will be calculated from the width/height of the parent control or anchorwindow.

If a number is specified, then a fixed distance in display units will be used (horizontal for left/right anchors and vertical for top/bottom anchors).

<postoffset > ... </postoffset>

An offset to the relative anchor position, in display units (horizontal for left/right anchors and vertical for top/bottom anchors) after the control size is calculated. Only applies when relation=”relative”.

</left>

<top > ... </top>

Contents similar to the <left> tag

<right > ... </right>

Contents similar to the <left> tag

<bottom > ... </bottom>

Contents similar to the <left> tag

<size >

Defines the size of controls anchored on only one side

<width > ... </width>

The width of the control, in display units

<height > ... </height>

The height of the control, in display units

</size>

<sizelimits >

<maximum >

Defines the maximum dimensions of the control

<width > ... </width>

The maximum width, in display units

<height > ... </height>

The maximum height, in display units

</maximum>

<minimum >

Defines the minimum dimensions of the control

<width > ... </width>

The minimum width, in display units

<height > ... </height>

The minimum height, in display units

</minimum>

</sizelimits>

</anchored>

<frame >

Defines the graphical frame used to render the control

<name > ... </name>

The name of the <framedef> definition for the frame

<offset > ... </offset>

A comma separated list of four numbers specifying the display unit margins applied to the frame when drawn

</frame>

<backcolor > ... </backcolor>

The color to be used to fill the background of the window control before drawing the contents. If no backcolor specified, then no fill will be done (i.e. transparent). The color should be in the form #AARRGGBB. If alpha is zero or not defined, FF is assumed.

<droptypes >

A list of drag types causing the drop target highlight frame to be displayed

<type > ... </type>

Multiple "type" tags define all types highlighted

</droptypes>

<stateframe >

This section defines optional frames that will be used under special circumstances

<keyedit >

The keyboard focus is on this control

<name > ... </name>

The name of the bitmap frame resource

<offset > ... </offset>

A comma separated list of four numbers specifying the display unit margins applied to the frame when drawn

<nobaseframe />

If present, the normal base frame will not be drawn under the state frame

<hidereadonly />

If present, the frame will not be drawn regardless of state when the control is set to read only.

</keyedit>

<pressed > ... </pressed>

The mouse button was clicked down on this control, but has not been released yet. Contents similar to the <keyedit> tag.

<hover > ... </hover>

The mouse pointer is situated over this control. Contents similar to the <keyedit> tag.

<drophilight > ... </drophilight>

The mouse pointer is carrying a drag and drop value that can be dropped in this control. Contents similar to the <keyedit> tag.

<drophover > ... </drophover>

The mouse pointer is carrying a drag and drop value that can be dropped in this control and is hovering over the control. Contents similar to the <keyedit> tag.

</stateframe>

<tabtarget >

Defines the names of the target fields used when navigating using the Tab key.

<next > ... </next>

The next target field

<prev > ... </prev>

The previous target field

</tabtarget>

<cursor >

<hover > ... </hover>

The cursor type that FG should display when hovering over control. Valid values are ("hand", "arrow"). The default cursor type is "arrow".

</cursor>

<tooltip >

<text > ... </text>

Tooltip text to display.

<textres > ... </textres>

Tooltip string resource to be displayed.

</tooltip>

<invisible />

Indicates the control should not be visible when first created.

<gmvisibleonly />

If not running in host mode, the control will not be visible when initially created.

<disabled />

Indicates the control should be disabled by default

<readonly />

Disable all user interface based editing

<gmeditonly />

If not running in host mode, disable all user interface based editing

</windowcontrol>

...