A simple push button control with an image icon in it, which is used to initiate an action
![]() | DefaultDimensions () Set the default (minimum) dimensions for the control |
![]() | OnDrawFace ( PCanvas & canvas, const PRect & rect, BOOL hasFocus, BOOL isSelected ) Draw the contents (face) of the pushbutton. |
![]() | PImageButton ( PInteractor * parent, ButtonType deflt = OrdinaryButton ) Create an icon button control with the specified attributes. |
![]() | PImageButton ( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, void * valuePtr ) Create control from interactor layout with the specified control ID. |
![]() | ~PImageButton () Destroy the icon push button control and image. |
![]() | DefaultDimensions () Set the default (minimum) dimensions for the control. |
![]() | SetImage ( const PImgIcon & img ) Set the current image used in the button. |
![]() | GetEnabledImage () const Get the current image being drawn in the face of the button when it is enabled. |
![]() | GetDisabledImage () const Get the current image being drawn in the face of the button when it is disabled. |
![]() | OnDrawFace ( PCanvas & canvas, const PRect & rect, BOOL hasFocus, BOOL isSelected ) Draw the contents (face) of the pushbutton. |
![]() | New functions for class |
![]() | System callback functions. |
![]() | enabledImage The small pixel image to be used in the button when enabled. |
![]() | disabledImage The small pixel image to be used in the button when disabled. |
PNotifier codes
Overrides from class PInteractor
Overrides from class PInteractor
Member variables
Overrides from class PObject
A simple push button control with an image icon in it, which is used to initiate an action
On some platforms this may be a dummy function which does nothing and
is never called.
The default action for this function is to draw the image centred in the
specified rectrangle. A slight offset is applied to this when the This aids the visual appearance.
virtual void OnDrawFace( PCanvas & canvas, const PRect & rect, BOOL hasFocus, BOOL isSelected )
rect - Bounds in which to draw the button face.
hasFocus - Flag indicating that the button has the focus.
isSelected - Flag indicating the button is currently down. PImageButton( PInteractor * parent, ButtonType deflt = OrdinaryButton )
deflt - Flag for is the default button. PImageButton( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, void * valuePtr )
ctlID - Identifier for the control in the layout.
notify - Function to call when changes state.
valuePtr - Variable to change to the button state.virtual ~PImageButton()
New functions for class
void DefaultDimensions()
void SetImage( const PImgIcon & img )
PImgIcon GetEnabledImage() const
PImgIcon GetDisabledImage() const
System callback functions.
virtual void OnDrawFace( PCanvas & canvas, const PRect & rect, BOOL hasFocus, BOOL isSelected )
rect - Bounds in which to draw the button face.
hasFocus - Flag indicating that the button has the focus.
isSelected - Flag indicating the button is currently down.PImgIcon enabledImage
PImgIcon disabledImage
Alphabetic index HTML hierarchy of classes or Java