API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eiklbx.h>
Inherits CEikListBox.
Inherited by CEikSnakingTextListBox.
Columns are arranged across the control from left to right; within columns, items are arranged from top to bottom. The flow of items or text ‘snakes’ across the face of the control.
This is a flexible control class that makes good use of short, wide display areas; for instance, subclasses of CEikSnakingListBox
could be used for file lists or for a control panel. A standard user subclass, CEikSnakingTextListBox
, also exists.
Public Member Functions |
|
IMPORT_C | CEikSnakingListBox () |
C++ standard constructor. |
|
IMPORT_C | ~CEikSnakingListBox () |
Destructor. |
|
virtual IMPORT_C CListBoxView * | MakeViewClassInstanceL () |
Creates an instance of the view class. |
|
virtual IMPORT_C void | SetTopItemIndex (TInt aItemIndex) const |
Sets the top item’s index. |
|
IMPORT_C TInt | ColumnWidth () const |
Gets the width of this list box’s columns. |
|
IMPORT_C void | SetColumnWidth (TInt aColumnWidth) |
Sets the width of all columns in the list box. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
virtual IMPORT_C void | HandleViewRectSizeChangeL () |
Handles a change in size of the viewing rectangle. |
|
virtual IMPORT_C void | HandleLeftArrowKeyL (CListBoxView::TSelectionMode aSelectionMode) |
Handles a left arrow key event. |
|
virtual IMPORT_C void | HandleRightArrowKeyL (CListBoxView::TSelectionMode aSelectionMode) |
Handles a right arrow key event. |
|
virtual IMPORT_C TInt | HorizontalNudgeValue () const |
Gets the number of grains to move horizontally when a nudge button is tapped. |
|
virtual IMPORT_C TInt | HorizScrollGranularityInPixels () const |
Gets the granularity for horizontal scrolls. |
|
virtual IMPORT_C void | AdjustTopItemIndex () const |
Called by various functions of this class to ensure that the top item index is always a sane value. |
|
virtual IMPORT_C void | HandleDragEventL (TPoint aPointerPos) |
Handles drag events. |
|
virtual IMPORT_C void | RestoreClientRectFromViewRect (TRect &aClientRect) const |
Calculates the client area. |
|
virtual IMPORT_C TInt | AdjustRectHeightToWholeNumberOfItems (TRect &aRect) const |
Rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed inside the list
box. |
|
IMPORT_C void | MoveToNextOrPreviousItemL (TPoint aPoint) |
Move to next or previous item according to the given parameter. |
|
virtual IMPORT_C void | SizeChanged () |
From CCoeControl . |
|
virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
C++ standard constructor. |
|
Destructor. |
|
Rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed inside the list box.
Reimplemented from CEikListBox. |
|
Called by various functions of this class to ensure that the top item index is always a sane value.
The implementation in Reimplemented from CEikListBox. |
|
Gets the width of this list box’s columns.
|
|
From
Gets the list of logical colours employed in the drawing of the control, paired with an explanation of how they are used.
Appends the list to
Reimplemented from CEikListBox. Reimplemented in CEikSnakingTextListBox. |
|
Handles drag events.
This function is called by
Reimplemented from CEikListBox. |
|
Handles a left arrow key event. Moves the cursor into the correct column and clears any matcher buffer that may have been built up.
Reimplemented from CEikListBox. |
|
From Handles pointer events.
Reimplemented from CEikListBox. Reimplemented in CEikSnakingTextListBox. |
|
From
Handles a change to the list box’s resources of type
Reimplemented from CEikListBox. Reimplemented in CEikSnakingTextListBox. |
|
Handles a right arrow key event. Moves the cursor into the correct column and clears any matcher buffer that may have been built up.
Reimplemented from CEikListBox. |
|
Handles a change in size of the viewing rectangle. This function is called by framework functions to update the content, view, and scroll bars of this list box after the viewing rectangle has changed size. This implementation ensures that the current item is visible after a resize. Reimplemented from CEikListBox. |
|
Gets the number of grains to move horizontally when a nudge button is tapped. For simple list boxes, this value is a fraction of the width of the client area.
Reimplemented from CEikListBox. |
|
Gets the granularity for horizontal scrolls. The granularity is the minimum size of a horizontal move of the client area.
Reimplemented from CEikListBox. |
|
Creates an instance of the view class.
This function is called during construction to create (but not second-phase construct) an instance of the correct view class
for this list box control. In the case of the snaking list box, a
This function overrides
Reimplemented from CEikListBox. |
|
Move to next or previous item according to the given parameter.
|
|
Calculates the client area.
This method is called by various functions of this class to recalculate the extent of the client area from
Reimplemented from CEikListBox. |
|
Sets the width of all columns in the list box.
|
|
Sets the top item’s index.
Reimplemented from CEikListBox. |
|
From
Updates the viewing rectangle of this control appropriately. The function updates the viewing rectangle, and invokes Reimplemented from CEikListBox. |