ADMButton Class Reference

Base class for wrapping ADM button controls. More...

#include <ADMButton.h>

Inherits ADMBaseControl.

Inherited by ADMCloseDialogButton, ADMLinkButton, and ADMNotifyButton.

Collaboration diagram for ADMButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ADMButton ()
 Default constructor.
 ADMButton (ADMItemRef control)
 Constructor for existing ADM buttons.

Protected Member Functions

 ADMButton (ADMItemRef control, bool bOwnerDraw)
 Constructor for existing owner-drawn ADM buttons.
virtual void OnNotify (ADMNotifierRef notifier)
 Called when a user performs an action; calls OnClick() if it's a click.
virtual bool OnClick ()=0
 Called when a button is clicked; must override.

Detailed Description

Base class for wrapping ADM button controls.

Definition at line 34 of file ADMButton.h.


Constructor & Destructor Documentation

ADMButton::ADMButton ( ADMItemRef  control  )  [inline]

Constructor for existing ADM buttons.

Parameters:
control Reference to the ADM button control

Definition at line 46 of file ADMButton.h.

ADMButton::ADMButton ( ADMItemRef  control,
bool  bOwnerDraw 
) [inline, protected]

Constructor for existing owner-drawn ADM buttons.

Parameters:
control Reference to the ADM button control
bOwnerDraw true for owner-drawn buttons, false for regular buttons

Definition at line 53 of file ADMButton.h.


Member Function Documentation

virtual bool ADMButton::OnClick (  )  [protected, pure virtual]

Called when a button is clicked; must override.

Returns:
true if the click was handled by the button, false to continue with the default handling

Implemented in ADMLinkButton, ADMNotifyButton, and ADMCloseDialogButton.

Referenced by OnNotify().

void ADMButton::OnNotify ( ADMNotifierRef  notifier  )  [protected, virtual]

Called when a user performs an action; calls OnClick() if it's a click.

Parameters:
notifier ADM notification object

Reimplemented from ADMBaseControl.

Reimplemented in ADMCloseDialogButton.

Definition at line 33 of file ADMButton.cpp.

References OnClick(), and ADMBaseControl::OnNotify().


The documentation for this class was generated from the following files:

Generated on Thu Dec 17 17:37:09 2009 for CCInfo PDF Plugin by doxygen 1.6.1