Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User Asif Nazir's Avatar
    Join Date
    Dec 2006
    Posts
    187
    Hi,

    i have single large style list box with svg icons. i want to change Text and Icon of 1st item
    in a list box,and also change text color of this item. how can i do that ?

    OR

    How can i redraw whole list box without deleting and adding items in it again. so that change appears if made in list box items data


    Thanks in advance

    Regards
    Asif Nazir

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I think you already asked this yesterday: http://discussion.forum.nokia.com/fo...d.php?t=171824

    there is really almost no point on repeating the same questions over and over again. Anyway, the changing of colors in listbox is not really trivial, you could try searching on how others have done custom listboxes..

    anyway, the item replacing you could do excatly as you though about, that is delete the previous and insert new on the point.

  3. #3
    Registered User Asif Nazir's Avatar
    Join Date
    Dec 2006
    Posts
    187
    Thanks symbianyucca, when i delete specific item from list box and add it again its icon does not refresh;

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    How did you do that, and did you call DrawNow() after the modification ?

  5. #5
    Registered User Asif Nazir's Avatar
    Join Date
    Dec 2006
    Posts
    187
    Yes i have called DrawNow , is it possible to just change text or icon of specific item.

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    ypou it is, you could delete items as shown in: http://wiki.forum.nokia.com/index.ph...from_a_listbox
    you could add them: http://wiki.forum.nokia.com/index.ph...ox_dynamically

    and as you can get the item array out:

    MDesCArray* listArray = iListBox->Model()->ItemTextArray();
    CDesCArray* itemArray = static_cast<CDesCArray*>(listArray);

    you could use functions provided by the CDesCArray to modify it.

    similalrly you can get the icon array with iListBox->ItemDrawer()->ColumnData()->IconArray();

  7. #7
    Registered User Asif Nazir's Avatar
    Join Date
    Dec 2006
    Posts
    187
    can u provide me a code sample to change item text with new one and icon from Text array (itemArray )and Icons array (iconArray ). i have used but item disappears.not shown again.

  8. #8
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    icon array changing could be found from: http://discussion.forum.nokia.com/fo...d.php?p=600391
    item array changin could be found here: http://discussion.forum.nokia.com/fo...ad.php?t=79668

    maybe next time you could try out the searching as well..

Similar Threads

  1. How to list box top item index?
    By datha_k in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-03-26, 17:23
  2. How to call a List Box...
    By harsh_vs in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-02-14, 22:02
  3. Scroll bars in a list box (Series 60)
    By krnsoft in forum Symbian User Interface
    Replies: 30
    Last Post: 2007-02-05, 06:12
  4. Replies: 2
    Last Post: 2006-04-27, 07:58
  5. List Box control on series -60
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-05-30, 21:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved