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 init(self: wStaticText; parent: wWindow; id = wDefaultID; label: string = "";
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wAlignLeft) {...}{.raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Initializes static text control.
proc StaticText(parent: wWindow; id = wDefaultID; label: string = ""; pos = wDefaultPoint;
               size = wDefaultSize; style: wStyle = wAlignLeft): wStaticText {...}{.inline,
    discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
                        Exception, IndexDefect, wFontError], tags: [RootEffect].}
Constructor.

Methods

method getBestSize(self: wStaticText): wSize {...}{.raises: [], tags: [].}
Returns the best acceptable minimal size for the control.
method getDefaultSize(self: wStaticText): wSize {...}{.raises: [], tags: [].}
Returns the default size for the control.
method release(self: wStaticText) {...}{.raises: [], tags: [RootEffect].}
Release all the resources during destroying. Used internally.