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) {...}{.validate, property, raises: [],
    tags: [].}
Sets the bitmap label.
proc getBitmap(self: wStaticBitmap): wBitmap {...}{.validate, property, inline, raises: [],
    tags: [].}
Returns the bitmap currently used in the control.
proc final(self: wStaticBitmap) {...}{.raises: [], tags: [].}
Default finalizer for wStaticBitmap.
proc init(self: wStaticBitmap; parent: wWindow; id = wDefaultID; bitmap: wBitmap = nil;
         pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wSbAuto) {...}{.validate,
    raises: [], tags: [].}
Initializer.
proc StaticBitmap(parent: wWindow; id = wDefaultID; bitmap: wBitmap = nil;
                 pos = wDefaultPoint; size = wDefaultSize; style: wStyle = wSbAuto): wStaticBitmap {...}{.
    inline, discardable, raises: [], tags: [].}
Constructor, creating and showing a static bitmap control.

Methods

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