Location: eikcmbut.h
Link against: eikcoctl.lib
CEikCommandButton
Supported from 6.0
Command button.
Command buttons may contain text, an image or both. A command button can be used to invoke a command in an application, or to toggle one of the application's states.
|
Defined in CEikCommandButton
:
AddCommandToStackL()
, CEikCommandButton()
, ConstructFromResourceL()
, EPictureOnly
, EShare
, ETextAndPicture
, ETextBottomPictureTop
, ETextLeftPictureRight
, ETextOnly
, ETextRightPictureLeft
, ETextTopPictureBottom
, EToPicture
, EToText
, Label()
, Picture()
, PopCommandFromStack()
, RemoveCommandFromStack()
, SetButtonLayout()
, SetCommandL()
, SetDisplayContent()
, SetExcessSpace()
, SetPictureFromFileL()
, SetPictureL()
, SetTextL()
, TDisplayContent
, TExcess
, TLayout
, UpdateComponentAlignment()
, ~CEikCommandButton()
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()
,
SetContainerWindowL()
,
SetDefault()
,
SetDimmed()
,
StartConstructFromResourceL()
,
StateChanged()
,
TWhichComponent
,
iCmdFlags
,
iComponents[2]
Inherited from MCoeControlContext
:
ActivateContext()
,
PrepareContext()
,
ResetContext()
CEikCommandButton();
Constructor.
Creates a CEikCommandButton
. See also ConstructFromResourceL()
.
void ConstructFromResourceL(TResourceReader& aReader);
Second-phase construction from a resource. Completes the construction of a command button from a CMBUT
resource.
|
void SetButtonLayout(TLayout aLayout);
Sets the relative positions of the text and image on a command button.
|
void UpdateComponentAlignment();
Updates the alignment of the button's text and image components.
void SetExcessSpace(TExcess aExcess);
Sets how excess horizontal space is shared between the command button's text and image.
|
The label text and the button image can alternatively be set during construction using a CMBUT
resource.
void SetTextL(const TDesC& aText,CEikAlignedControl*& aComponent);
Sets the text that will appear on the command button.
|
void SetPictureL(const CFbsBitmap* aMain,const CFbsBitmap* aMask=NULL);
Sets the bitmap image to be displayed in the button, and optionally a bitmap mask for the image.
|
void SetPictureFromFileL(const TDesC& aFilename,TInt aMain,TInt aMask=-1);
Set the command button's image to a bitmap stored in a file.
A bitmap mask may optionally be set using aMask
. If the image cannot be read from the file, the button is not updated.
|
CEikLabel* Label() const;
Gets the button's text label.
|
CEikImage* Picture() const;
Gets the button's image.
|
void AddCommandToStackL(TInt aCommandId,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask);
Supported from 6.1
Adds the command button's command ID and text/bitmap to the top of the command stack.
These values can subsequently be
restored from the command stack by a call to PopCommandFromStack()
.
Each command button can store a stack of IDs and text/bitmaps on a command stack. This allows an application to use different command buttons depending on which of its views is currently visible.
|
TInt PopCommandFromStack();
Supported from 6.1
Pops the uppermost command button from the command stack.
This restores the current command button's command ID, text and bitmap to
the values they had before the last call to AddCommandToStackL()
.
|
TBool RemoveCommandFromStack(TInt aCommandId);
Supported from 6.1
Removes the command button with the command ID specified from the command stack.
|
|
void SetCommandL(TInt /*aCommandId*/,const TDesC* aText,const CFbsBitmap* aBitmap,const CFbsBitmap* aMask);
Supported from 6.1
Sets the command button's text, bitmap and bitmap mask.
|
void SetDisplayContent(TDisplayContent aContent);
Specifies whether text, image or both are to be displayed.
|
enum TLayout
Specifies the positions of text and image on the command button.
This enum shadows the values defined in CEikCommandButtonBase::TLayout
to provide more intuitive names for a command button.
|
enum TDisplayContent;
Specifies whether text, image or both are to be displayed. This enum shadows the values defined in CEikCommandButtonBase::TDisplayContent
to provide more intuitive names for a command button.
|
enum TExcess;
Enumerates the possible ways of sharing excess horizontal space between the command button's text and image. See also: SetExcessSpace(TExcess)
.
|