#include <mw/eikcmbut.h>
class CEikTextButton : public CEikCommandButtonBase |
Public Member Functions | |
---|---|
CEikTextButton() | |
~CEikTextButton() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C CEikLabel * | Label(TWhichComponent) |
IMPORT_C void | SetTextL(const TDesC &, TWhichComponent) |
A command button with a text label
This specialization of CEikCommandButtonBase supports a single text label.
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
From CCoeControl
Construct the object from resource
Parameter | Description |
---|---|
aReader | Fully constructed resource reader |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikCommandButtonBase::HandlePointerEventL(const TPointerEvent &)
From CCoeControl
Handle a pointer event coming from the CONE framework
Parameter | Description |
---|---|
aPointerEvent | Event to handle |
IMPORT_C CEikLabel * | Label | ( | TWhichComponent | aWhich = EFirst | ) | const |
Access the label control that implements the text label of the button. Ownership is not transferred.
Returns: A pointer to the CEikLabel control used to implement the text display
IMPORT_C void | SetTextL | ( | const TDesC & | aText, |
TWhichComponent | aWhich = EFirst | |||
) |
Sets the label text for the button.
Parameter | Description |
---|---|
aText | The text to set |
aWhich | The component for which the text is to be set. |