Font size of list items in listbox

Login to reply to this topic.
Sat, 2006-05-13 13:30
Joined: 2005-07-26
Forum posts: 81
Hi,

Is there any method using which we can change (reduce) the font size or font itself for all the list items in a list box. For eg: CAknSingleNumberStyleListBox single line listbox.

Sat, 2006-05-13 16:39
Joined: 2005-01-04
Forum posts: 226
Re: Font size of list items in listbox
AFAIK, There isn't any direct API's to accomplish this....

Correct me if i'm wrong....

Maybe you can try by creating your own custom list box....
Sun, 2006-05-14 08:05
Joined: 2005-07-26
Forum posts: 81
Re: Font size of list items in listbox
Its very simple dude.. just a two line solution (amazing..!)

CColumnListBoxItemDrawer* drawer = iListBox->ItemDrawer();
drawer->ColumnData()->SetColumnFontL(0, iEikonEnv->LegendFont());
Tue, 2007-02-27 05:41
Joined: 2005-05-19
Forum posts: 45
Re: Font size of list items in listbox
Say2Paul, how did you get this to work... I get a compile error when I try to access iListBox->ItemDrawer() and it says that ItemDrawer() is undefined for a CAknSingleNumberStyleListBox object.

"If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein

Wed, 2008-11-12 14:15
Joined: 2008-09-02
Forum posts: 40
Re: Font size of list items in listbox

Use iListBox->View()->ItemDrawer() Instead.

  • Login to reply to this topic.