Hi FN
I want to show only 3 rows of list (in a 240x320 resolution) because I need to save some space for other controls.
The standard CEikFormattedCellListBox shows 4 rows in that resolution.
Does anyone know how to do it?
Hi FN
I want to show only 3 rows of list (in a 240x320 resolution) because I need to save some space for other controls.
The standard CEikFormattedCellListBox shows 4 rows in that resolution.
Does anyone know how to do it?
hello,
i guess you have got in LayoutControls() something like:
i would make some condition there if you want less number of rowsCode:iListBox->SetExtent(TPoint( 0, 0), iListBox->MinimumSize() );
good luck
Hi,
You could do it while defining the listbox itself
There the height is meant for the items you can also follow this linkDefining a listbox in resource file
Listbox resources are described with the LISTBOX structure, as defined in the eikon.rh file.
STRUCT LISTBOX
{
BYTE version; // version number
WORD flags; // listbox flags
WORD height; // in items
WORD width; // in chars
LLINK array_id; // points to items in ARRAY structure
}
STRUCT ARRAY
{
STRUCT items[]; // list items
}
Regards,
Sriky
You could also set the item size using
TSize size = Rect().Size();
size.iHeight /= 4; // You want 4 items in the resolution
iMyListBox->ItemDrawer()->SetItemCellSize( size );
Regards,
Sriky