wStaticText

A static text control displays one or more lines of read-only text.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wAlignLeftAlign the text to the left.
wAlignRightAlign the text to the right.
wAlignCentreCenter the text (horizontally).
wAlignCenterCenter the text (horizontally).
wAlignMiddleCenter the text (vertically).
wAlignLeftNoWordWrapAlign the text to the left, but words are not wrapped
Events:wCommandEvent
wCommandEventDescription
wEvent_CommandLeftClickClicked the left mouse button within the control.
wEvent_CommandLeftDoubleClickDouble-clicked the left mouse button within the control.

Consts

wAlignLeft = 0x00000000
wAlignRight = 0x00000002
wAlignCentre = 0x00000001
wAlignCenter = 0x00000001
wAlignMiddle = 0x00000200
wAlignLeftNoWordWrap = 0x0000000C

Procs

proc final(self: wStaticText) {...}{.raises: [], tags: [].}
Default finalizer for wStaticText.
proc init(self: wStaticText; parent: wWindow; id = wDefaultID; label: string = "";
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wAlignLeft) {...}{.validate,
    raises: [], tags: [].}
Initializer.
proc StaticText(parent: wWindow; id = wDefaultID; label: string = ""; pos = wDefaultPoint;
               size = wDefaultSize; style: wStyle = wAlignLeft): wStaticText {...}{.inline,
    discardable, raises: [], tags: [].}
Constructor, creating and showing a text control.

Methods

method getBestSize(self: wStaticText): wSize {...}{.property, raises: [], tags: [].}
Returns the best acceptable minimal size for the control.
method getDefaultSize(self: wStaticText): wSize {...}{.property, raises: [], tags: [].}
Returns the default size for the control.