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();
CDesCArray* textArray = new (ELeave) CDesCArrayFlat(2);
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? :-)