Many thanks for the suggestions, I have finally got the box to display itself (it was the CEikFormattedCellListBox class i should have been using, many thanks ninidotnet).
However i do now have another issue with the class, how to format the text within the indivdual items into two columns.
currently i am obtaining the text for the item via:
Code:
TBuf<128> itemText;
itemText.Append(iModel->ItemText(aItemIndex));
itemText.TrimLeft();
Ths is then formatted and drawn via:
Code:
TListItemProperties font;
font.SetBold(ETrue);
font.SetColor(KRgbBlack);
font.SetDimmed(EFalse);
font.SetItalics(EFalse);
CFont* fontUsed = ColumnData()->Font(font,0);
TRgb orange = TRgb(244,164,96);
iGc->UseFont(fontUsed);
iGc->SetBrushColor(orange);
TPoint topleft(aActualItemRect.iTl.iX+10, aActualItemRect.iTl.iY);
TRect highlighted(topleft, aActualItemRect.iBr);
TInt baseline = (aActualItemRect.Height() - fontUsed->HeightInPixels()) / 2 + fontUsed->AscentInPixels();
iGc->DrawRect(aActualItemRect);
iGc->SetBrushStyle(CGraphicsContext::ENullBrush);
iGc->DrawText(itemText, highlighted, baseline);
All of this is within the DrawActualItem method of the extended CFormattedCellListBoxItemDrawer class.
Now the problem is that this displays the text as one line, i.e.
Bob'\t'000000000000
exactly as the text is returned.
My question is, is there a way to retreive the text for the individual columns or set the text in the individual columns so that i obtain a format more like:
Bob
00000000000
in each cell. I have looked through the API's and tried googling this subject but i am having trouble finding the information i need to solve this, so any illumination that can be provided would be appreciated.
Many thanks again for your time and patience.
Osprey