A static bitmap control displays a bitmap. It is meant for display of the small icons in the dialog boxes and is not meant to be a general purpose image display control. In particular, under Windows 9x the size of bitmap is limited to $6464$ pixels and thus you should use your own control if you want to display larger images portably.
There are no special styles for this control.
See also window styles overview.
The bitmap to be displayed should have a small number of colours, such as 16, to avoid palette problems.
StaticBitmap.newWindow% parent, Integer id, Bitmap label,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = 0,
String name = "staticBitmap")
Constructor, creating and showing a text control.
Boolean *create(Window parent, Integer id, Bitmap label,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = 0,
String name = "staticBitmap")
Creation function, for two-step construction. For details see StaticBitmap.new.
Bitmap get_bitmap()
Returns the bitmap currently used in the control. Notice that this method can be called even if set_icon had been used.
Icon get_icon()
Returns the icon currently used in the control. Notice that this method can only be called if set_icon had been used: an icon can’t be retrieved from the control if a bitmap had been set (using set_bitmap).
set_bitmap(Bitmap label)
Sets the bitmap label.
set_icon(Icon label)
Sets the label to the given icon.
[This page automatically generated from the Textile source at Thu May 01 00:50:44 +0100 2008]