AknListBoxLinesTemplate Class Reference

#include <mw/aknlists.h>

class AknListBoxLinesTemplate
Public Member Functions
AknListBoxLinesTemplate(TInt)
IMPORT_C CCoeControl *ComponentControl(TInt)
IMPORT_C TIntCountComponentControls()
IMPORT_C voidDraw(const TRect &)
IMPORT_C voidSizeChanged()

Detailed Description

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.

Constructor & Destructor Documentation

AknListBoxLinesTemplate ( TInt )

IMPORT_CAknListBoxLinesTemplate(TIntaResourceId)

AknListBoxLinesTemplate

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

Member Function Documentation

ComponentControl ( TInt )

IMPORT_C CCoeControl *ComponentControl(TIntaIndex)const

CountComponentControls()

Choose controls to use as child controls

CountComponentControls ( )

IMPORT_C TIntCountComponentControls()const

CountComponentControls()

Choose controls to use as child controls

Draw ( const TRect & )

IMPORT_C voidDraw(const TRect &aRect)const

Draw()

Draws the lines

SizeChanged ( )

IMPORT_C voidSizeChanged()

SizeChanged()

Determines position of the lines