×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    Problem: Delete Operation With ListBox.

    i can use a SetItemTextArray for set data
    But at delete time which function i call for get data from listbox

    Please give me solution for this problem

    Taruna

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Problem: Delete Operation With ListBox.

    say you want to delete the item in focus you will have to get the current index of the listbox and delete it.

    TInt currentItem = iAppView->iItemList->CurrentItemIndex();
    MDesCArray* textArray = iAppView->iItemList->Model()->ItemTextArray();
    // get listbox item array
    CDesCArray* itemList = static_cast<CDesCArray*>(textArray);
    // delete currently selected item
    itemList->Delete(currentItem, 1);
    // handle item deletion and reposition listbox highlight
    AknListBoxUtils::HandleItemRemovalAndPositionHighlightL(iAppView->iItemList, currentItem, ETrue);
    // redraw listbox
    iAppView->iItemList->DrawNow();

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    17

    Re: Problem: Delete Operation With ListBox.

    Hi Tanya,

    You can check the Shopinglist example in your ...\Series60Ex folder.

    Regards,
    Vidya

  4. #4
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    Re: Problem: Delete Operation With ListBox.

    Ok

    Thank you Very Much i Solved My Problem.

    Tanya

Similar Threads

  1. listbox problem
    By sriramadasu in forum Symbian C++
    Replies: 9
    Last Post: 2006-10-27, 15:27
  2. the problem this listbox with images
    By Aykis in forum Symbian User Interface
    Replies: 7
    Last Post: 2006-10-20, 15:34
  3. problem in Custom Listbox
    By vijay_dasani85 in forum Symbian C++
    Replies: 2
    Last Post: 2006-10-19, 12:42
  4. Replies: 0
    Last Post: 2006-07-21, 15:07
  5. Compile problem on Create dynamically a listbox
    By aferrario in forum Symbian C++
    Replies: 1
    Last Post: 2006-07-19, 04:45

Posting Permissions

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