Location:
eikcmbut.h
Link against:
eikcoctl.lib
CEikTwoPictureCommandButton
Supported from 6.0
This class provides a command button which can hold two pictures in addition to label text.
|
Defined in CEikTwoPictureCommandButton
:
ActivateL
, CEikTwoPictureCommandButton()
, ConstructFromResourceL()
, ConstructImagesFromResourceL()
, EPictureOnly
, EShare
, ETextAndPicture
, ETextBottomPictureTop
, ETextLeftPictureRight
, ETextOnly
, ETextRightPictureLeft
, ETextTopPictureBottom
, EToPicture
, EToText
, IsSecondPictureOwnedExternally()
, Picture()
, SetPictureFromFileL()
, SetSecondPicture()
, SetSecondPictureFromFileL()
, SetSecondPictureOwnedExternally()
, SetTextL()
, SetTwoPicturesL()
, TDisplayContent
, TExcess
, TLayout
, ~CEikTwoPictureCommandButton()
Inherited from CBase
:
operator new()
Inherited from CCoeControl
:
ActivateGc()
,
BackedUpWindow()
,
CapturesPointer()
,
ClaimPointerGrab()
,
CloseWindow()
,
ControlContext()
,
ControlEnv()
,
CopyControlContextFrom()
,
CreateBackedUpWindowL()
,
CreateWindowL()
,
DeactivateGc()
,
DrawDeferred()
,
DrawNow()
,
DrawableWindow()
,
EnableDragEvents()
,
GetColor()
,
GetHelpContext()
,
GrabbingComponent()
,
HandleComponentControlsResourceChange()
,
HandlePointerBufferReadyL()
,
HandleRedrawEvent()
,
IgnoreEventsUntilNextPointerUp()
,
Index()
,
IsActivated()
,
IsBackedUp()
,
IsBeingDestroyed()
,
IsBlank()
,
IsDimmed()
,
IsFocused()
,
IsNonFocusing()
,
IsReadyToDraw()
,
IsVisible()
,
MakeVisible()
,
Observer()
,
OverrideColorL()
,
OwnsWindow()
,
Position()
,
PositionChanged()
,
PositionRelativeToScreen()
,
PrepareForFocusGainL()
,
PrepareForFocusLossL()
,
Rect()
,
RecursivelyMergedInputCapabilities()
,
ReportEventL()
,
ResetGc()
,
SetAllowStrayPointers()
,
SetBlank()
,
SetCanDrawOutsideRect()
,
SetComponentsToInheritVisibility()
,
SetContainerWindow()
,
SetControlContext()
,
SetCornerAndSize()
,
SetCornerAndSizeL()
,
SetExtent()
,
SetExtentL()
,
SetExtentToWholeScreen()
,
SetExtentToWholeScreenL()
,
SetFocus()
,
SetFocusing()
,
SetGloballyCapturing()
,
SetNeighbor()
,
SetNonFocusing()
,
SetObserver()
,
SetPointerCapture()
,
SetPosition()
,
SetRect()
,
SetRectL()
,
SetSize()
,
SetSizeL()
,
SetSizeWithoutNotification()
,
SetSizeWithoutNotificationL()
,
Size()
,
SizeChanged()
,
SizeChangedL()
,
SystemGc()
,
Window()
Inherited from CEikBorderedControl
:
Border()
,
HasBorder()
,
SetAdjacent()
,
SetBorder()
,
iBorder
Inherited from CEikButtonBase
:
Animate()
,
CopyDrawStateTo()
,
DrawState()
,
EClear
,
EDrawClear
,
EDrawClearPressed
,
EDrawIndeterminate
,
EDrawIndeterminatePressed
,
EDrawSet
,
EDrawSetPressed
,
EEikButtonLatches
,
EEikButtonReportsOnPointerDown
,
EEikButtonStaysClear
,
EEikButtonStaysSet
,
EIndeterminate
,
ESet
,
HandlePointerEventL()
,
InputCapabilities()
,
IsPressed()
,
SetAllowTristate()
,
SetBehavior()
,
SetBubbleHelpTextL()
,
SetCoordinator()
,
SetIgnoreNextPointerUp()
,
SetReportOnPointerDown()
,
SetState()
,
State()
,
TButtonBehavior
,
TDrawState
,
TState
,
iButFlags
Inherited from CEikCommandButtonBase
:
ActivateL()
,
Behavior()
,
CheckCreateCommandStack()
,
ComponentControl()
,
ConstructImageFromResourceL()
,
ConstructLabelFromResourceL()
,
CountComponentControls()
,
Draw()
,
EBoth
,
EFirst
,
EFirstBottomSecondTop
,
EFirstLeftSecondRight
,
EFirstOnly
,
EFirstRightSecondLeft
,
EFirstTopSecondBottom
,
ESecond
,
ESecondOnly
,
EToFirst
,
EToSecond
,
FocusChanged()
,
GetColorUseListL()
,
HandleResourceChange()
,
LayoutComponents()
,
MinimumSize()
,
OfferKeyEventL()
,
SetButtonLayout()
,
SetContainerWindowL()
,
SetDefault()
,
SetDimmed()
,
SetDisplayContent()
,
SetExcessSpace()
,
SetPictureL()
,
StartConstructFromResourceL()
,
StateChanged()
,
TWhichComponent
,
UpdateComponentAlignment()
,
iCmdFlags
,
iComponents[2]
Inherited from MCoeControlContext
:
ActivateContext()
,
PrepareContext()
,
ResetContext()
void ConstructFromResourceL(TResourceReader& aReader);
Constructs the command button, complete with a label and two images, from resource.
|
void ActivateL();
Sets the button as ready to be drawn. An application should call this function on all command buttons that are not components in a compound control.
This function will panic if the second bitmap is not present.
void ConstructImagesFromResourceL(TResourceReader& aReader,TWhichComponent aWhich);
Constructs the button’s images from resource.
|
TBool IsSecondPictureOwnedExternally();
Tests whether the bitmaps for the second button picture are owned externally.
|
CEikImage* Picture() const;
Gets the button’s image control component.
|
void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask);
Sets the button’s first picture from file. Loads the image bitmap identified by aMain
and the mask bitmap identified by aMask
from the bitmap file named aFilename
.
|
void SetSecondPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask);
Sets the button’s second picture from file. Loads the image bitmap identified by aMain
and the mask bitmap identified by aMask
from the bitmap file named aFilename
.
|
void SetSecondPicture(const CFbsBitmap* aSecondMain,const CFbsBitmap* aSecondMask);
Sets the button’s second picture from bitmaps. Uses aSecondMain
as the image bitmap and aSecondMask
as the mask bitmap. Takes ownership of the bitmaps unless the second picture is already set as owned externally.
|
void SetSecondPictureOwnedExternally(TBool aOwnership);
Sets ownership of the bitmaps used for the button’s second picture.
|
void SetTwoPicturesL(const CFbsBitmap* aMain,const CFbsBitmap* aMask,const CFbsBitmap* aSecondMain,const CFbsBitmap* aSecondMask);
Sets both pictures for the button. The first picture is created from the image bitmap aMain
and the mask bitmap aMask
. The second picture is created from the image bitmap aSecondMain
and mask bitmap aSecondMask
.
|
void SetTextL(const TDesC& aText);
Sets the button’s label.
|
TExcess
Determines how excess space is allocated between the button’s label and pictures.
|
TLayout
Determines how the button’s label and pictures are layed out.
|
TDisplayContent
Determines which of the button’s label and pictures are displayed.
|