Description |
Parent class: XSettingButton
XUserButton |
XWindow * owner | the owner | ||||||
XRect * rect | the rectangle | ||||||
USHORT id | id of the window | ||||||
ULONG style | style, valid values are:
(can be or-ed). | ||||||
const char * string | text to display (default is NULL) | ||||||
SHORT yOffset | an y-offset for the bitmap (useful if you use bimaps and text, default is NULL) |
Constructs a userbuttom
IsSelected |
BOOL selection
Query if the button is selected or not
Select |
BOOL selection TRUE=select, FALSE=unselect
Select te button
Toggle |
Toggles the button
GetBitmapPointer |
UCHAR index | index of the bitmap: 0 = the bitmap to display if the button is not pressed 1 = the bitmap to display if the button is pressed |
XBitmap * bmp the requested bitmap
Returns a pointer to one of two used bitmaps.
GetGraphPointer |
XGraphicDevice * dev the graphic device
Returns a pointer to the graphic-device of the button.
GetTextPointer |
XText * text the text object
Returns a pointer to used text-object of the button.
SetBitmap |
XBitmap * bmp | the bitmap |
UCHAR index | index of the bitmap: 0 = the bitmap to display if the button is not pressed 1 = the bitmap to display if the button is pressed /t> |
Set a bitmap to the button. The bitmap is copied so the destructor of the bitmap given in the argument can be called when this functions returns.