Link against: avkon.lib eikcoctl.lib 
 None
#include <EIKCMBUT.H>
      
      Inherits CEikCommandButtonBase.
Inherited by CEikInverterCommandButton, and CEikMenuButton.
This class in S60 does not function without derivation This class does NOT implement S60 look-and-feel and is not skinned.
Public Types | 
         |
| enum | TLayout { ETextRightPictureLeft = 0x000, ETextBottomPictureTop = 0x001, ETextTopPictureBottom = 0x002, ETextLeftPictureRight = 0x003 } | 
| Layout options for a command button.  More... | 
         |
| enum | TExcess { EShare = 0x0000, EToText = 0x0010, EToPicture = 0x0020 } | 
| Where to put excess space in the layout.  More... | 
         |
| enum | TDisplayContent { ETextOnly = 0x0100, EPictureOnly = 0x0200, ETextAndPicture = 0x0300 } | 
| Content to diplay for this button.  More... | 
         |
Public Member Functions | 
         |
| IMPORT_C | CEikCommandButton () | 
| Constructor.   | 
         |
| IMPORT_C | ~CEikCommandButton () | 
| C++ destructor.   | 
         |
| IMPORT_C void | SetTextL (const TDesC &aText) | 
| Sets the label text for the button.   | 
         |
| IMPORT_C void | SetPictureL (const CFbsBitmap *aMain, const CFbsBitmap *aMask=NULL) | 
| Sets the bitmap and optional mask for the button.   | 
         |
| IMPORT_C void | SetPictureFromFileL (const TDesC &aFilename, TInt aMain, TInt aMask=-1) | 
| Set bitmap and mask from file.   | 
         |
| IMPORT_C CEikLabel * | Label () const | 
| Access the label control that implements the text label of the button.   | 
         |
| IMPORT_C CEikImage * | Picture () const | 
| Access the CEikImage that implements the picture component of the button.   | 
         |
| IMPORT_C void | SetButtonLayout (TLayout aLayout) | 
| Set the layout of the button.   | 
         |
| IMPORT_C void | SetExcessSpace (TExcess aExcess) | 
| Sets where the excess space in the layout is to be distributed.   | 
         |
| IMPORT_C void | SetDisplayContent (TDisplayContent aContent) | 
| Set what content is to be displayed in the button.   | 
         |
| IMPORT_C void | SetCommandL (TInt aCommandId, const TDesC *aText, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) | 
| Sets the command button's text, bitmap and bitmap mask.   | 
         |
| IMPORT_C void | AddCommandToStackL (TInt aCommandId, const TDesC *aText, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) | 
| Push a command ID + text + image binding onto the command stack.   | 
         |
| IMPORT_C TBool | RemoveCommandFromStack (TInt aCommandId) | 
| Find the stacked command with a given command ID and remove it from the stack.   | 
         |
| IMPORT_C TInt | PopCommandFromStack () | 
| Remove the top (most recently added) command binding from the command stack.   | 
         |
| IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) | 
| From CCoeControl.   | 
         |
| IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) | 
| From CCoeControl.   | 
         |
| IMPORT_C void | UpdateComponentAlignment () | 
| From CEikCommandButtonBase.   | 
         |
               
               
  | 
         
| 
               
               
                Content to diplay for this button. Reimplemented from CEikCommandButtonBase.  | 
         
               
               
  | 
         
| 
               
               
                Where to put excess space in the layout. Reimplemented from CEikCommandButtonBase.  | 
         
               
               
  | 
         
| 
               
               
                Layout options for a command button. Reimplemented from CEikCommandButtonBase.  | 
         
               
               
  | 
         
| 
               
               
                Constructor.  | 
         
               
               
  | 
         
| 
               
               
                C++ destructor.  | 
         
               
               
  | 
         ||||||||||||||||||||
| 
               
               
                Push a command ID + text + image binding onto the command stack. 
  | 
         
               
               
  | 
         
| 
               
               
                From CCoeControl. Construct the object from resource 
 Reimplemented in CEikMenuButton.  | 
         
               
               
  | 
         
| 
               
               
                From CCoeControl. Handle a pointer event coming from the CONE framework 
 Reimplemented from CEikCommandButtonBase. Reimplemented in CEikInverterCommandButton, and CEikMenuButton.  | 
         
               
               
  | 
         
| 
               
               
                Access the label control that implements the text label of the button. Ownership is not transferred. 
  | 
         
               
               
  | 
         
| 
               
               
                Access the CEikImage that implements the picture component of the button. Ownership is not transferred. 
  | 
         
               
               
  | 
         
| 
               
               
                Remove the top (most recently added) command binding from the command stack. 
  | 
         
               
               
  | 
         
| 
               
               
                Find the stacked command with a given command ID and remove it from the stack. 
 
  | 
         
               
               
  | 
         
| 
               
               
                Set the layout of the button. 
  | 
         
               
               
  | 
         ||||||||||||||||||||
| 
               
               
                Sets the command button's text, bitmap and bitmap mask. 
  | 
         
               
               
  | 
         
| 
               
               
                Set what content is to be displayed in the button. 
  | 
         
               
               
  | 
         
| 
               
               
                Sets where the excess space in the layout is to be distributed. 
  | 
         
               
               
  | 
         ||||||||||||||||
| 
               
               
                Set bitmap and mask from file.  | 
         
               
               
  | 
         ||||||||||||
| 
               
               
                Sets the bitmap and optional mask for the button. 
  | 
         
               
               
  | 
         
| 
               
               
                Sets the label text for the button. 
  | 
         
               
               
  | 
         
| 
               
               
                From CEikCommandButtonBase. Cause a recalculation of the components alignment Reimplemented from CEikCommandButtonBase.  |