I have a problem concerning a list box with icons in the first column. It's easy to fill the list with data from a resource file, but my application fails when trying to fill it run-time in code, the debugger giving error "User breakpoint called from code at xxx". My code looks as follows:
CEikColumnListBox* iListBox = new (ELeave) CAknSingleLargeStyleListBox();
iListBox->ConstructL(this, KAknExListDefaultFlag);
CDesCArray* textArray = new (ELeave) CDesCArrayFlat(2);
_LIT(KFirst,"First");
_LIT(KSecond,"Second");
It fails when trying to draw the control (when DrawNow() in the container is called). Intuitively, it sounds as the text array tries to fit in a graphic column or something. However, I use CAknSingleLargeStyleListBox(), which should know the order of the columns... Or should it?
Anyone having similar problems? :-)
Anu
RE: Dynamic data in column lists with icons
2002-10-10, 08:25#2