In s60, there are many kinds of listbox with "CAkn...ListBox". But those listbox have predefined format and layout and I don't know how to change their features such as font, number of items in view, background color....
I simple wants to use a "standard" listbox with text item, has highlighted and can easily change its' attributes, so I used the listbox of UI Core Control - the inheritances class of CEikListBox. And the problem is here! When I use CEikTextListBox , I can do everything I want (change font, set itemheight to define num of items in view, change background color....) EXCEPT there're NO highlighted in listbox. There is only a rect encloses current item and it seems bad! Althought the listbox has SetHighlightedBackColor() and SetHighlightedTextColor() function, it does NOT effect. Some one has given me some tips and I tried many, but it doesn't affect.
At last, how can I use EikListBox with all of features of a "real" listbox in app of mobile s60? I'm sure it's possible, because I saw a app has same listbox.
Thank you so much for every helps!
Thanks very much for guide!
But I still not understand. You said " change the color of the selected item in the list box in Draw method. But what is "iCurrentSelection", it's a variable or member of Listbox class? Draw method is a method of container class or method of inheritance listbox class?
Please give me details instruction.
Thank you very much!