wStaticBitmap

A static bitmap control displays a bitmap.

Appearance:
Superclass:wControl
Styles:
StylesDescription
wSbAutoAutomatically sizes the control to accommodate the bitmap.
wSbFitStretch or shrink the bitmap to fit the size.
wSbCenterCenter the bitmap and clip if needed.
Events:wCommandEvent
wCommandEventDescription
wEvent_CommandLeftClickClicked the left mouse button within the control.
wEvent_CommandLeftDoubleClickDouble-clicked the left mouse button within the control.

Consts

wSbAuto = 0
wSbFit = 0x00000040
wSbCenter = 0x00000200

Procs

proc setBitmap(self: wStaticBitmap; bitmap: wBitmap) {...}{.raises: [], tags: [].}
Sets the bitmap label.
proc getBitmap(self: wStaticBitmap): wBitmap {...}{.inline, raises: [], tags: [].}
Returns the bitmap currently used in the control.
proc init(self: wStaticBitmap; parent: wWindow; id = wDefaultID; bitmap: wBitmap = nil;
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wSbAuto) {...}{.raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Initializes static bitmap control.
proc StaticBitmap(parent: wWindow; id = wDefaultID; bitmap: wBitmap = nil;
                 pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wSbAuto): wStaticBitmap {...}{.
    inline, discardable, raises: [wNilAccess, wWindowError, wCursorError, wBrushError,
                               Exception, IndexDefect, wFontError],
    tags: [RootEffect].}
Constructor.

Methods

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