|
|
|
Location:
EIKCMBOX.H
Link against: eikctl.lib
class CEikComboBox : public CEikBorderedControl, public MCoeControlObserver, public MQikControlStreamInterface, public MQikTextRepresentationInterface;
A combo-box allows an item from a list to be chosen, or a new item entered, by a user.
The available items can be viewed in a drop-down list.
MQikTextRepresentationInterface - MQikTextRepresentationInterface should be implemented by controls that are normally shown in a container pop-out e.gMQikControlStreamInterface - MQikControlStreamInterface is used by controls to be able to handle cancel behaviour from e.gMCoeControlObserver - Interface for a control to send events to its observer controlMEikBorderedControl - Interface for bordered controlsMObjectProvider - An interface that allows an object to be part of a network of object providersCBase - Base class for all classes to be instantiated on the heapCCoeControl - Control base class from which all other controls are derivedCEikBorderedControl - A control which is drawn surrounded by a rectangular borderCEikComboBox - A combo-box allows an item from a list to be chosen, or a new item entered, by a userDefined in CEikComboBox:
Array(), Array(), CEikComboBox(), ComponentControl(), ConstructFromResourceL(), ConstructL(), CountComponentControls(), Draw(), EArrayExternalOwner, EArrayInternalOwner, EDisableAutoSelection, Edwin(), Edwin(), FocusChanged(), GetColorUseListL(), GetText(), HandleControlEventL(), HandleResourceChange(), InputCapabilities(), InsertTextIntoArrayL(), MaxArraySize(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), RestoreUserDataL(), SetArrayL(), SetArrayL(), SetControlValueObserver(), SetDimmed(), SetTextL(), SizeChanged(), StoreUserDataL(), TArrayOwnershipType, TFlags, TextRepresentationL(), ~CEikComboBox()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
ComponentArrayExists(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GetTextDrawer(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleRedrawEvent(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MaximumWidth(),
MopNext(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
Reserved_2(),
ResetGc(),
ScreenFont(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetMaximumWidth(),
SetMopParent(),
SetNonFocusing(),
SetObserver(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextDrawer(),
UniqueHandle(),
Window(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from CEikBorderedControl:
ActivateL(),
Border(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandlePointerEventL(),
HasBorder(),
MakeVisible(),
PositionChanged(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
MCoeControlObserver_Reserved1(),
MCoeControlObserver_Reserved2(),
TCoeEvent
Inherited from MEikBorderedControl:
ETypeId,
anonymous
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining()
IMPORT_C CEikComboBox();
First phase of construction of a combo-box.
Complete construction with ConstructFromResourceL() or ConstructL() .
IMPORT_C ~CEikComboBox();
Destructor.
Deletes the array of combo box items if it is not set as externally owned.
IMPORT_C void ConstructL(TInt aWidthInChars, TInt aTextLimit, TInt aMaxArraySize, TUint aFlags=0);
Completes construction of a combo box.
|
IMPORT_C const MDesC16Array *Array() const;
Gets a pointer to the array of combo box items.
|
IMPORT_C void SetArrayL(TInt aResourceId, TArrayOwnershipType aOwner=EArrayInternalOwner);
Sets the array of combo box items from resource.
|
IMPORT_C void SetArrayL(MDesC16Array *aArray, TArrayOwnershipType aOwner=EArrayInternalOwner);
Sets the combo-box item array.
|
|
IMPORT_C void GetText(TDes &aDes) const;
Gets the text currently held in the Edwin used to edit combo box items.
|
IMPORT_C void SetTextL(const TDesC *aDes);
Sets the text to be edited with the Edwin.
|
IMPORT_C void InsertTextIntoArrayL();
Inserts the text held in the Edwin into the combo-box item array.
IMPORT_C const CEikEdwin *Edwin() const;
Gets a pointer to the Edwin used to edit the combo box items.
|
IMPORT_C TInt MaxArraySize() const;
Gets the maximum size of the combo-box item array.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Handles key events.
|
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
Completes construction of a combo-box from resource.
|
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the combo-box including the space required for the Edwin.
|
virtual IMPORT_C void FocusChanged(TDrawNow aDrawNow);
Passes focus to the Edwin used to edit the combo box items.
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of colours used to draw the combo box.
|
virtual IMPORT_C void HandleResourceChange(TInt aType);
Handles a change to the control's resources.
The types of resources handled are those which are shared across the environment, e.g. colours or fonts.
|
virtual IMPORT_C void SetDimmed(TBool aDimmed);
Sets the combo box dim state.
|
virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
|
virtual IMPORT_C HBufC *TextRepresentationL() const;
This method shall return a textual representation of the controls current value
|
virtual IMPORT_C void SetControlValueObserver(MQikControlValueObserver *aObserver);
This method is used to set the control value observer that shall later be notified of control value changes.
|
protected: virtual IMPORT_C void StoreUserDataL(RWriteStream &aWriteStream) const;
Write the current value of the control to aWriteStream
|
protected: virtual IMPORT_C void RestoreUserDataL(RReadStream &aReadStream);
Read the previously written value of the control from aReadStream
|
protected: virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEvent);
Handles control events.
|
protected: virtual IMPORT_C TInt CountComponentControls() const;
Gets the number of component controls.
This will be two, as the component controls are the Edwin and the tab button.
|
protected: virtual IMPORT_C CCoeControl *ComponentControl(TInt aIndex) const;
Gets the specified component control.
|
|
protected: virtual IMPORT_C void SizeChanged();
Responds to a change in the combo box size.
Panics if there is insufficient width or height available to display the combo box.
protected: virtual IMPORT_C void Draw(const TRect &aRect) const;
Draws the combo box in the specified rectangle.
|
protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Gets an object whose type is encapsulated by the specified TTypeUid object.
|
|
TFlags
|