API published in: S60 1st Ed
Link against: eikcoctl.lib avkon.lib
Required Capabilities
None
#include <eikcmbut.h>
Inherits CEikCommandButtonBase.
If a second picture is set for the button it is shown when the button is pressed.
Public Types |
|
enum | TLayout { ETextRightPictureLeft = 0x000, ETextBottomPictureTop = 0x001, ETextTopPictureBottom = 0x002, ETextLeftPictureRight = 0x003 } |
Layout options for the Two Picture botton. More... |
|
enum | TExcess { EShare = 0x0000, EToText = 0x0010, EToPicture = 0x0020 } |
Where to put the excess space when laying out the bitmaps or text. More... |
|
enum | TDisplayContent { ETextOnly = 0x0100, EPictureOnly = 0x0200, ETextAndPicture = 0x0300 } |
Content to display for the text. More... |
|
Public Member Functions |
|
IMPORT_C | CEikTwoPictureCommandButton () |
Two picture command button constructor. |
|
IMPORT_C | ~CEikTwoPictureCommandButton () |
Two picture command button C++ destructor. |
|
IMPORT_C TBool | IsSecondPictureOwnedExternally () |
Accesses ownership of the second picture' bitmap and mask (if present). |
|
IMPORT_C CEikImage * | Picture () const |
Access the picture image. |
|
IMPORT_C void | ConstructImagesFromResourceL (TResourceReader &aReader, TWhichComponent aWhich) |
Constructs the two images from resource. |
|
IMPORT_C void | SetTextL (const TDesC &aText) |
Sets the label text on the button. |
|
IMPORT_C void | SetTwoPicturesL (const CFbsBitmap *aMain, const CFbsBitmap *aMask=NULL, const CFbsBitmap *aSecondMain=NULL, const CFbsBitmap *aSecondMask=NULL) |
Sets the bitmap and optional mask for the button's two pictures. |
|
IMPORT_C void | SetSecondPicture (const CFbsBitmap *aSecondMain, const CFbsBitmap *aSecondMask=NULL) |
Sets the bitmap and optional mask for the button's second picture. |
|
IMPORT_C void | SetPictureFromFileL (const TDesC &aFilename, TInt aMain, TInt aMask=-1) |
Sets the bitmap and optional mask for the first picture from an mbm file. |
|
IMPORT_C void | SetSecondPictureFromFileL (const TDesC &aFilename, TInt aMain, TInt aMask=-1) |
Sets the bitmap and optional mask for the second picture from an mbm file. |
|
IMPORT_C void | SetSecondPictureOwnedExternally (TBool aOwnership) |
Sets the ownership of the second picture object. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From CCoeControl. |
|
IMPORT_C void | ActivateL () |
From CCoeControl. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. |
|
Protected Member Functions |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
From CCoeControl. |
|
Content to display for the text. Reimplemented from CEikCommandButtonBase. |
|
Where to put the excess space when laying out the bitmaps or text. Reimplemented from CEikCommandButtonBase. |
|
Layout options for the Two Picture botton. Reimplemented from CEikCommandButtonBase. |
|
Two picture command button constructor. |
|
Two picture command button C++ destructor. |
|
From CCoeControl. Make the control ready for display Reimplemented from CEikCommandButtonBase. |
|
From CCoeControl.
|
|
Constructs the two images from resource.
|
|
From CCoeControl. Handle a pointer event coming from the CONE framework
Reimplemented from CEikCommandButtonBase. |
|
Accesses ownership of the second picture' bitmap and mask (if present).
|
|
Access the picture image.
|
|
Sets the bitmap and optional mask for the first picture from an mbm file.
|
|
Sets the bitmap and optional mask for the button's second picture.
|
|
Sets the bitmap and optional mask for the second picture from an mbm file.
|
|
Sets the ownership of the second picture object.
|
|
Sets the label text on the button.
|
|
Sets the bitmap and optional mask for the button's two pictures. Optionally, only the first button's picture may be set up.
|
|
From CCoeControl. Serialize the state of the control
Reimplemented from CEikCommandButtonBase. |