×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    29

    about listbox style

    Hello~~ Dear all,
    Is it possible to have two different style listboxes in one view?

    for example:
    first two items in the listbox with class CAknSingleStyleListBox
    the following items in another listbox with class CAknDoubleStyleListBox?

    THANKS

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    Of course it is possible. You even can force one listbox to display items in different styles, colors, fonts, etc... But it is a little bit more difficult, coz you need to draw items yourself...

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    29

    Thanks

    Thanks

    would you tell me how to force the listboxitem style?
    eg.

    listbox with class CAknSingleStyleListBox, and some items in that listbox with another class?

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    As I said, it is not easy. Take a look at this method, and you should see how to do it:
    CTextListItemDrawer:rawActualItem()
    You can draw everything yourself and so the "listbox styles" are useless for you and you can inherit your fancy listbox directly from CEikListbox or CEikTextListbox.

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    29

    THANKS AGAIN

    Thanks very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×