wStaticBox

A static box is a rectangle drawn around other windows to denote a logical grouping of items.

Appearance:
Superclass:wControl

Procs

proc init(self: wStaticBox; parent: wWindow; id = wDefaultID; label: string = "";
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = 0) {...}{.raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Initializes a static box.
proc StaticBox(parent: wWindow; id = wDefaultID; label: string = ""; pos = wDefaultPoint;
              size = wDefaultSize; style: wStyle = 0): wStaticBox {...}{.inline, discardable, raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Constructor.

Methods

method getBestSize(self: wStaticBox): wSize {...}{.raises: [], tags: [].}
Returns the best acceptable minimal size for the control.
method getDefaultSize(self: wStaticBox): wSize {...}{.raises: [], tags: [].}
Returns the default size for the control.
method getClientAreaOrigin(self: wStaticBox): wPoint {...}{.raises: [], tags: [].}
Get the origin of the client area of the window relative to the window top left corner.
method getClientSize(self: wStaticBox): wSize {...}{.raises: [Exception],
    tags: [RootEffect].}
Returns the size of the window 'client area' in pixels.
method release(self: wStaticBox) {...}{.raises: [], tags: [].}
Release all the resources during destroying. Used internally.