AknListBoxLinesTemplate Class Reference

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.

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

Parameters

TInt aResourceId

Member Functions Documentation

ComponentControl(TInt)

IMPORT_C CCoeControl *ComponentControl(TIntaIndex)const

CountComponentControls()

Choose controls to use as child controls

Parameters

TInt aIndex

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

Parameters

const TRect & aRect

SizeChanged()

IMPORT_C voidSizeChanged()

SizeChanged()

Determines position of the lines

Member Data Documentation

TAknLayoutRect iHoriLine

TAknLayoutRect iHoriLine[private]

TBool iResized

TBool iResized[private]

TInt iSpare

TInt iSpare[private]

TInt iSpare0

TInt iSpare0[private]

TAknLayoutRect iVertLine2

TAknLayoutRect iVertLine2[private]