class AknListBoxLinesTemplate |
THIS FILE INCLUDES: 1) All listbox layouts specified in Avkon LAF specification a) General list pane descendants b) Pop up window list pane descendants c) Grid panes 2) Utilities that help building listbox layouts based on LAF specification 3) Other helper classes that handle listbox behavior This adds correct horizontal and vertival lines to the listbox and handles empty listbox!
This class is only useful if you're writing your own list layout. Please use the predefined layouts instead, for example CAknSingleStyleListBox.
Public Member Functions | |
---|---|
AknListBoxLinesTemplate(TInt) | |
IMPORT_C CCoeControl * | ComponentControl(TInt) |
IMPORT_C TInt | CountComponentControls() |
IMPORT_C void | Draw(const TRect &) |
IMPORT_C void | SizeChanged() |
Private Attributes | |
---|---|
TAknLayoutRect | iHoriLine |
TBool | iResized |
TInt | iSpare |
TInt | iSpare0 |
TAknLayoutRect | iVertLine2 |
IMPORT_C | AknListBoxLinesTemplate | ( | TInt | aResourceId | ) |
Read AVKON_LISTBOX_LINES resources.
The following predefined lines are available: R_LIST_PANE_LINES_A_COLUMN R_LIST_PANE_LINES_AB_COLUMN R_LIST_PANE_LINES_AB_COLUMN_X R_LIST_PANE_LINES_AB_COLUMN_XX R_LIST_PANE_LINES_BC_COLUMN R_LIST_PANE_LINES_BC_COLUMN_X R_LIST_PANE_LINES_BC_COLUMN_XX
TInt aResourceId |
IMPORT_C CCoeControl * | ComponentControl | ( | TInt | aIndex | ) | const |
Choose controls to use as child controls
TInt aIndex |
IMPORT_C TInt | CountComponentControls | ( | ) | const |
Choose controls to use as child controls
IMPORT_C void | Draw | ( | const TRect & | aRect | ) | const |
Draws the lines
const TRect & aRect |