A static text control displays one or more lines of read-only text.
Appearance: | |
Superclass: | wControl |
Styles: | Styles | Description |
wAlignLeft | Align the text to the left. |
wAlignRight | Align the text to the right. |
wAlignCentre | Center the text (horizontally). |
wAlignCenter | Center the text (horizontally). |
wAlignMiddle | Center the text (vertically). |
wAlignLeftNoWordWrap | Align the text to the left, but words are not wrapped |
|
Events: | wCommandEventwCommandEvent | Description |
wEvent_CommandLeftClick | Clicked the left mouse button within the control. |
wEvent_CommandLeftDoubleClick | Double-clicked the left mouse button within the control. |
|
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.
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.