CEikTextButton Class Reference

API published in: S60 1st Ed

Link against: eikcoctl.lib avkon.lib

Capability Information

Required Capabilities

None


#include <eikcmbut.h>

Inherits CEikCommandButtonBase.


Detailed Description

A command button with a text label.

This specialization of CEikCommandButtonBase supports a single text label.


Public Member Functions

IMPORT_C  CEikTextButton ()
  Constructor.
IMPORT_C  ~CEikTextButton ()
  C++ destructor.
IMPORT_C void  SetTextL (const TDesC &aText, TWhichComponent aWhich=EFirst)
  Sets the label text for the button.
IMPORT_C CEikLabel Label (TWhichComponent aWhich=EFirst) const
  Access the label control that implements the text label of the button.
IMPORT_C void  ConstructFromResourceL (TResourceReader &aReader)
  From CCoeControl.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.

Constructor & Destructor Documentation

IMPORT_C CEikTextButton::CEikTextButton  ) 
 

Constructor.

IMPORT_C CEikTextButton::~CEikTextButton  ) 
 

C++ destructor.


Member Function Documentation

IMPORT_C void CEikTextButton::ConstructFromResourceL TResourceReader &  aReader  ) 
 

From CCoeControl.

Construct the object from resource

Parameters:
aReader  Fully constructed resource reader
IMPORT_C void CEikTextButton::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handle a pointer event coming from the CONE framework

Parameters:
aPointerEvent  Event to handle

Reimplemented from CEikCommandButtonBase.

IMPORT_C CEikLabel* CEikTextButton::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 CEikTextButton::SetTextL const TDesC &  aText,
TWhichComponent  aWhich = EFirst
 

Sets the label text for the button.

Parameters:
aText  The text to set
aWhich  The component for which the text is to be set.

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

Copyright © Nokia Corporation 2001-2008
Back to top