All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

Go Back   All About Symbian Forums > General > Development > Symbian C++

 
 
Thread Tools Display Modes

  #1  
Old 09-12-2002, 01:29 PM
Guest
 
Posts: n/a
How to change the content of a list box dynamically?

I can't find a solution!!! (

I just want to add a new entry into my CAknDoubleNumberStyleListBox...

But all I found out till now is how to create a new entry (and overwrite everything)... But I need to add a new entry after the existing entries...

How can I do that? Didnt find any help in the SDK...

Thank you guys...

Wumms

  #2  
Old 09-12-2002, 01:45 PM
cmatthee's Avatar
cmatthee cmatthee is offline
Registered User
 
Join Date: May 2002
Posts: 175
cmatthee is on a distinguished road
I don't know a CAknDoubleNumberStyleListBox. The following will work for any listbox that uses the CTextListBoxModel as model.

[code:1]CTextListBoxModel* lbModel = (CTextListBoxModel*)iLbox->Model();
CDesCArray* textarray = (CDesCArray*)lbModel->ItemTextArray();
textarray->InsertL(pos, newtext);
iLbox->HandleItemAdditionL();
iLbox->UpdateScrollBarsL();
iLbox->DrawDeferred();[/code:1]
Ads

  #3  
Old 09-12-2002, 02:05 PM
Guest
 
Posts: n/a
It should look like this...
 

Bookmarks

Tags
box, change, content, dynamically, list

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flip Closed Standby Application List - how to change items? Sony Ericsson P800, P900 and P910 2 20-07-2003 09:20 AM
ICQ for 9210 TheSpecialBoy Nokia 9210 and 9290 13 20-11-2002 11:09 AM



All times are GMT. The time now is 12:27 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy