×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    20

    Update listbox item

    hi,

    i want to change a listbox item's text. i created it at my UI designer but i can't reach the text to change.

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Update listbox item

    Change the text and invoke,
    Code:
    iListbox->HandleItemAdditionL();
    That should update your listbox. There are many examples related to listbox in the wiki, the sdk installation, and also in this very same forum. please search.

    Priju

  3. #3
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Update listbox item

    hi,

    call also

    iListbox->HandleItemAdditionL();
    iListbox->DrawNow();


    Quote Originally Posted by Priju Jacob Paul View Post
    Change the text and invoke,
    Code:
    iListbox->HandleItemAdditionL();
    That should update your listbox. There are many examples related to listbox in the wiki, the sdk installation, and also in this very same forum. please search.
    to see the changes immediately..


    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  4. #4
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Update listbox item

    Quote Originally Posted by mateen_maldar View Post
    hi,

    call also
    iListbox->HandleItemAdditionL();
    iListbox->DrawNow();
    to see the changes immediately..
    Regards,
    Mateen Maldar
    Hi Mateen,
    i dont think DrawNow() is needed after HandleItemAdditionL() as this function handles the listbox redrawing and repositioning too.

    The HandleItemAdditionL() method handles the listbox redrawing and repositions the selection in a sensible state.
    Src: Adding Item to ListBox
    Priju

  5. #5
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Update listbox item

    hi,

    it depends upon on the drawing container ,

    if ur adding an list item through an asynchronous call and the screen behave weird sometimes..

    i had this kind of problem sometime back not now..

    it purely depends on what the end developer wants to achieve..


    Quote Originally Posted by Priju Jacob Paul View Post
    Hi Mateen,
    i dont think DrawNow() is needed after HandleItemAdditionL() as this function handles the listbox redrawing and repositioning too.


    Anyways thanks for the comment..


    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

Similar Threads

  1. How to open a Container from a ListBox Item?
    By jennie in forum Symbian User Interface
    Replies: 5
    Last Post: 2007-09-11, 07:37
  2. Cannot read from listbox item array
    By Acemaker in forum Symbian
    Replies: 6
    Last Post: 2007-07-14, 17:43
  3. How to update Item of ListBox?
    By goodtaste in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-04-09, 07:58
  4. Single listbox item update?
    By mayur_24 in forum Symbian
    Replies: 1
    Last Post: 2004-12-03, 01:45
  5. Replies: 1
    Last Post: 2002-11-13, 10:15

Posting Permissions

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