×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    4

    Question Separators in listboxes.

    Hi!
    I'm wondering if it's possible to add one, or many, separators in a listbox, to put data in different "groups"?
    Here's an example:

    Line 1.
    Line 2.
    --------
    Line 3.
    Line 4
    Line 5.

    I'm using Series 60 3rd edition SDK.

    // Jonas.

  2. #2
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Separators in listboxes.

    Hi,

    Create a custom listbox, and in drawactualitem of itemdrawer u can draw your own.

    regards,
    eswar

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    4

    Re: Separators in listboxes.

    Thanks Eswar.

    Another question; is it possible to add a "group name" instead of a,
    or as a, separator? As they do in, for instance, the MSN client and others.
    Here's an example:

    DEFAULT GROUP
    Line 1.
    Line 2.
    SECOND GROUP
    Line 3.
    Line 4.

    // Jonas.

  4. #4
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Separators in listboxes.

    Hi,

    Do Like this,

    Create one class, like CMsnItem and add the variables groupname, clientname etc., and take one pointer array to CMsnItem and add the items to array. and while display on listbox check the groupname and display it.

    regards,
    eswar

  5. #5
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    212

    Re: Separators in listboxes.

    hi eswar,

    can u help me with this

    Thanks.

Similar Threads

  1. Listboxes in views
    By C64 in forum Symbian User Interface
    Replies: 5
    Last Post: 2006-10-10, 12:50
  2. Setting empty text in these listboxes ?
    By darkenvy in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-05-19, 09:43
  3. Listboxes, again...
    By jarjak in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-11-26, 12:48
  4. Replies: 0
    Last Post: 2003-07-28, 10:36
  5. about setting listboxes, pls help!
    By advocatee in forum Symbian
    Replies: 0
    Last Post: 2003-07-27, 12:11

Posting Permissions

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