×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    ListBox with 2 columns

    hi all,
    i wanted to know how can we display listbox with 2 columns . I am using CEikColumnListBox , which control needs to be used for this or shld we create our own control , I am storing the elements in two separate array then trying to display by calling


    model->SetItemTextArray(listboxArray);
    model()->SetItemTextArray(listboxArray1);

    It is giving me an Unhandled exception in Epoc.exe as to eikcoctl(EIKCTL.DLL) error

    Thanx in advance
    rashmi

    Posted by rashmi r, rashbms@rediffmail.com
    on February 11, 2002 at 15:26

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    RE: ListBox with 2 columns

    Posted by Tamas Gergely, gtamas@mobilforum.hu
    on February 26, 2002 at 12:27

    The solution is very simple, but unfortunately not documented clearly:

    The text written into the row wil be split on KColumnListSeparator, so you simply need to insert this constant into your string, and than appen the modeltextarray with this string.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    RE: ListBox with 2 columns

    KColumnListSeparator is usually \t (tab)

Posting Permissions

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