A generic button, and base class for the other generic buttons.
lib.buttons.GenBitmapButton, lib.buttons.GenToggleButton, lib.buttons.ThemedGenButton
__init__ | |
AcceptsFocus | Overridden base class virtual. |
DoGetBestSize | Overridden base class virtual. Determines the best size of the |
DrawBezel | |
DrawFocusIndicator | |
DrawLabel | |
Enable | |
GetBackgroundBrush | |
GetBezelWidth | Return the width of the 3D effect |
GetDefaultAttributes | Overridden base class virtual. By default we should use |
GetUseFocusIndicator | Return focus indicator flag |
InitColours | Calculate a new set of highlight and shadow colours based on |
InitOtherEvents | Override in a subclass to initialize any other events that |
Notify | |
OnGainFocus | |
OnKeyDown | |
OnKeyUp | |
OnLeftDown | |
OnLeftUp | |
OnLoseFocus | |
OnMotion | |
OnPaint | |
OnSize | |
SetBackgroundColour | |
SetBezelWidth | Set the width of the 3D effect |
SetDefault | |
SetForegroundColour | |
SetInitialSize | Given the current font and bezel width settings, calculate |
SetUseFocusIndicator | Specifiy if a focus indicator (dotted line) should be used |
ShouldInheritColours | Overridden base class virtual. Buttons usually don’t inherit |
A generic button, and base class for the other generic buttons.
Overridden base class virtual.
Overridden base class virtual. Determines the best size of the button based on the label and bezel size.
Return the width of the 3D effect
Overridden base class virtual. By default we should use the same font/colour attributes as the native Button.
Return focus indicator flag
Calculate a new set of highlight and shadow colours based on the background colour. Works okay if the colour is dark...
Override in a subclass to initialize any other events that need to be bound. Added so __init__ doesn’t need to be overriden, which is complicated with multiple inheritance
Set the width of the 3D effect
Given the current font and bezel width settings, calculate and set a good size.
Specifiy if a focus indicator (dotted line) should be used
Overridden base class virtual. Buttons usually don’t inherit the parent’s colours.