This control displays a simple icon.
![]() | OnRedraw ( PCanvas & canvas ) This function is called by the system whenever the control requires redrawing. |
![]() | DefaultDimensions () Set the default (minimum) dimensions for the control. |
![]() | PStaticIcon ( PInteractor * parent ) Create a static icon control with the icon. |
![]() | PStaticIcon ( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, void * valuePtr ) Create control from interactor layout with the specified control ID. |
![]() | ~PStaticIcon () Destroy the static icon control. |
![]() | DefaultDimensions () Set the default (minimum) dimensions for the control. |
![]() | SetIcon ( const PIcon & icn ) Set the icon to be displayed in the control. |
![]() | GetIcon () const Get the current icon used in the control. |
![]() | New functions for class |
![]() | alignment The current alignment used by the control. |
![]() | icon Icon used by the static control. |
PNotifier codes
Overrides from class PInteractor
Overrides from class PInteractor
Member variables
Overrides from class PObject
System callback functions.
This control displays a simple icon. The icon is displayed without any borders or scaling.This control is display only and normally does not permit any further interaction.
The bahaviour here is to draw the name of the control with the alignment specified. It uses the PCanvas::DrawString() function.
void DefaultDimensions()
int alignment
PStaticIcon( PInteractor * parent )
PStaticIcon( 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 - Unused value pointer for static control.virtual ~PStaticIcon()
New functions for class
void DefaultDimensions()
void SetIcon( const PIcon & icn )
PIcon GetIcon() const
Alphabetic index HTML hierarchy of classes or Java