Home | Trees | Index | Help |
|
---|
Package wx :: Class BitmapButton |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |Button
--+ | BitmapButton
ColourSelect
,
ContextHelpButton
,
FoldOutMenu
A Button that contains a bitmap. A bitmap button can be supplied with a single bitmap, and wxWidgets will draw all button states using this bitmap. If the application needs more control, additional bitmaps for the selected state, unpressed focused state, and greyed-out state may be supplied.
wx.BU_AUTODRAW If this is specified, the button will be drawn automatically using the label bitmap only, providing a 3D-look border. If this style is not specified, the button will be drawn without borders and using all provided bitmaps. WIN32 only. wx.BU_LEFT Left-justifies the label. WIN32 only. wx.BU_TOP Aligns the label to the top of the button. WIN32 only. wx.BU_RIGHT Right-justifies the bitmap label. WIN32 only. wx.BU_BOTTOM Aligns the label to the bottom of the button. WIN32 only. wx.BU_EXACTFIT Creates the button as small as possible instead of making it of the standard size (which is the default behaviour.)
EVT_BUTTON Sent when the button is clicked.
See Also:
Method Summary | |
---|---|
BitmapButton |
Create and show a button with a bitmap for the label. |
bool |
Acutally create the GUI BitmapButton for 2-phase creation. |
Bitmap |
Returns the bitmap for the disabled state. |
Bitmap |
Returns the bitmap for the focused state. |
Bitmap |
Returns the bitmap used when the mouse is over the button, may be invalid. |
Bitmap |
Returns the label bitmap (the one passed to the constructor). |
Bitmap |
Returns the bitmap for the selected state. |
int | GetMarginX(self)
|
int | GetMarginY(self)
|
Sets the bitmap for the disabled button appearance. | |
Sets the bitmap for the button appearance when it has the keyboard focus. | |
Sets the bitmap to be shown when the mouse is over the button. | |
Sets the bitmap label for the button. | |
Sets the bitmap for the selected (depressed) button appearance. | |
SetMargins(self,
x,
y)
|
Property Summary | |
---|---|
BitmapDisabled : See GetBitmapDisabled and SetBitmapDisabled | |
BitmapFocus : See GetBitmapFocus and SetBitmapFocus | |
BitmapHover : See GetBitmapHover and SetBitmapHover | |
BitmapLabel : See GetBitmapLabel and SetBitmapLabel | |
BitmapSelected : See GetBitmapSelected and SetBitmapSelected | |
MarginX : See GetMarginX | |
MarginY : See GetMarginY | |
thisown : The membership flag |
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
bitmap=wxNullBitmap,
pos=DefaultPosition,
size=DefaultSize,
style=BU_AUTODRAW,
validator=DefaultValidator,
name=ButtonNameStr)
|
Create(self, parent, id=-1, bitmap=wxNullBitmap, pos=DefaultPosition, size=DefaultSize, style=BU_AUTODRAW, validator=DefaultValidator, name=ButtonNameStr)Acutally create the GUI BitmapButton for 2-phase creation.
|
GetBitmapDisabled(self)Returns the bitmap for the disabled state.
|
GetBitmapFocus(self)Returns the bitmap for the focused state.
|
GetBitmapHover(self)Returns the bitmap used when the mouse is over the button, may be invalid.
|
GetBitmapLabel(self)Returns the label bitmap (the one passed to the constructor).
|
GetBitmapSelected(self)Returns the bitmap for the selected state.
|
SetBitmapDisabled(self, bitmap)Sets the bitmap for the disabled button appearance.
|
SetBitmapFocus(self, bitmap)Sets the bitmap for the button appearance when it has the keyboard focus.
|
SetBitmapHover(self, hover)Sets the bitmap to be shown when the mouse is over the button. This function is new since wxWidgets version 2.7.0 and the hover bitmap is currently only supported in wxMSW.
|
SetBitmapLabel(self, bitmap)Sets the bitmap label for the button. This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided.
|
SetBitmapSelected(self, bitmap)Sets the bitmap for the selected (depressed) button appearance.
|
Property Details |
---|
BitmapDisabledSee
|
BitmapFocusSee
|
BitmapHoverSee
|
BitmapLabelSee
|
BitmapSelectedSee
|
MarginXSee
|
MarginYSee
|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:09:32 2007 | http://epydoc.sf.net |