API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eikclb.h>
Inherits CEikTextListBox.
Inherited by CAknColumnListBox.
This is a list box whose lines consist of cells that are grouped vertically into columns. The columns can be either textual
or graphical, and column widths and fonts can be set explicitly through CColumnListBoxData
.
Starting from 3.0 listbox uses highlight animations. Starting and stopping animation is connected to focus events. To support highlight animations properly you have to make sure that the list has focus when it has 'visual focus'. Common issues:
Public Member Functions |
|
IMPORT_C | CEikColumnListBox () |
C++ default constructor. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
Second-phase construction from a resource. |
|
IMPORT_C void | ConstructL (const CCoeControl *aParent, TInt aFlags=0) |
By default Symbian 2nd phase constructor is private. |
|
IMPORT_C void | EditItemL (TInt aColumn, TInt aMaxLength) |
Not supported in S60. |
|
IMPORT_C CTextListBoxModel * | Model () const |
Gets the list box model. |
|
IMPORT_C CColumnListBoxItemDrawer * | ItemDrawer () const |
Gets the object used by this list box to draw its items. |
|
IMPORT_C void | EnableExtendedDrawingL () |
This method needs to be called to enable extended drawing features such as skinning, pictograph drawing and marquee text in
the listbox draw routine. |
|
void | SetIconSizes () |
Helper function that setst icon sizes for visible list items. |
|
IMPORT_C void | EnableStretching (const TBool aEnabled) |
Enables/disables list stretching. |
|
IMPORT_C CListBoxView * | MakeViewClassInstanceL () |
From CEikListBox . |
|
IMPORT_C void | FocusChanged (TDrawNow aDrawNow) |
From CEikListBox . |
|
IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
IMPORT_C TTypeUid::Ptr | MopSupplyObject (TTypeUid aUid) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
virtual IMPORT_C void | CreateItemDrawerL () |
This member is internal and not intended for use. |
|
virtual IMPORT_C void | CreateModelL () |
Creates a new CTextListBoxModel . |
|
C++ default constructor. |
|
Second-phase construction from a resource. This function completes the construction of a column list box, initialising any members from the specified resource reader.
Reimplemented from CEikTextListBox. |
|
By default Symbian 2nd phase constructor is private. This function completes the construction of a column list box.
Reimplemented from CEikTextListBox. |
|
This member is internal and not intended for use. Reimplemented from CEikTextListBox. Reimplemented in CAknSingleGraphicHeadingStyleListBox. |
|
Creates a new Reimplemented in CAknColumnListBox. |
|
Not supported in S60. |
|
This method needs to be called to enable extended drawing features such as skinning, pictograph drawing and marquee text in the listbox draw routine.
Methods This method can be safely called more than once. Item drawer must be created before calling this method, or a panic is raised. |
|
Enables/disables list stretching. When a column list is stretched its layout is optimized to take advantage of the extra screen space. This is intented for devices with a large screen. This feature might be set as default by a product specific flag. Item drawer must be created before calling this method.
|
|
From Handles focus changes. The function emphasises or de-emphasises the view as needed, and shows or hides the matcher cursor.
Reimplemented from CEikListBox. |
|
From Not used in S60
Reimplemented from CEikTextListBox. |
|
From Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type
If overriding
Reimplemented from CEikTextListBox. Reimplemented in CAknColumnListBox, CAknSingleStyleListBox, CAknSingleGraphicStyleListBox, CAknSingleGraphicHeadingStyleListBox, and CAknSingleLargeStyleListBox. |
|
From 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. For colour scheme
changes,
If overriding
Reimplemented from CEikTextListBox. |
|
Gets the object used by this list box to draw its items.
|
|
From
Creates the list box view. The function is called by @ ConstructL() to create an instance of the appropriate list box view class for this list box. The returned instance is owned by this object,
and does not have to have its second-phase constructor run. This function is called by
Reimplemented from CEikListBox. Reimplemented in CAknColumnListBox, and CAknSingleGraphicHeadingStyleListBox. |
|
Gets the list box model.
Reimplemented from CEikTextListBox. |
|
From
Retrieves an object of the same type as that encapsulated in This function is used to allow controls to ask their owners for access to other objects that they own.
Other than in the case where NULL is returned, the object returned must be of the same object type - that is, the
|
|
Helper function that setst icon sizes for visible list items. |