Click or drag to resize

FixedBitmap Class (Typed)

X#
Create a FixedBitmap object. Unlike the bitmaps created by the Bitmap class, fixed bitmaps are static—they do not need to be redisplayed every time an ExposeEvent occurs. FixedBitmap objects can be created dynamically or from a resource entity.
Inheritance Hierarchy
Object
  VObject
    Control
      FixedImage
        FixedBitmap

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS FixedBitmap INHERIT FixedImage
Request Example View Source

The FixedBitmap type exposes the following members.

Constructors
  NameDescription
Public methodFixedBitmap
Construct a FixedBitmap object.
Top
Properties
  NameDescription
Public propertyHyperLabel
The hyperlabel connected to the control.
(Overrides HyperLabel.)
Top
Functions
  NameDescription
Public methodAsString
Return the identifying label of the fixed bitmap.
(Overrides AsString.)
Public methodSetBitmap
Associate a bitmap image with the FixedBitmap static control.
Top
Examples
This example creates a fixed bitmap from a resource entity and changes its position to the lower-left corner of a dialog window:
X#
1CLASS MyDialogWindow INHERIT DialogWindow
2HIDDEN OMyFBitmap AS OBJECT
3METHOD Init(oWindow) CLASS MyDialogWIndow
4SUPER:Init(oWindow,ID_MYDIALOG)
5OMyFBitmap := FixedBitmap{SELF,MYBITMAP}
6OMyFBitmap:Origin := Point{10,10}
7SELF:Show()
In Windows, a fixed bitmap is equivalent to a static object with the SS_BITMAP style. These are normally specified in the resource entity as follows:
X#
1RESOURCE IDI_FIXEDBITMAP BITMAP fixed.bmp
2RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 80
3STYLE WS_POPUP | WS_DLGFRAME
4BEGIN
5BITMAP IDI_FIXEDBITMAP -1, 8, 8, 0, 0
6END
See Also