You Are Here:

Community: Wiki

 

Talk:List box example

From Forum Nokia Wiki

I don't think it makes sense to delete and re-create the listbox every time the framework calls SizeChanged() on the container. It should be enough to create the listbox once in the ConstructL() and then call DrawDeferred() in SizeChanged(). There was also a call to a leaving function in SizeChanged() which is non-leaving. I added a TRAP_IGNORE just to cover it up, but the whole thing should be fixed.

Also calling DrawNow() at the end of ConstructL() is not a good idea. Window server will draw the the container in due time, you should not force it. You should try to avoid ever calling DrawNow() unless it is really necessary.

This is not a very good example of how listboxes should be used.

- Marko


This article represents code snippest to create a simple list box in Symbian C++. May be this article does not provides a very good example according to Mr. Marko, but I think some articles are specially meant for beginner for understanding some basic concepts. Creativity and perfection comes after when your fundamental concepts are clear.

ListBox is a primary feature of an application. List box is a GUI element which is made up of multiple text-boxes elements and used to select one item form many. This article represnts a quick guide for how we can create a simple list box following by the code snippests to do so.

This article can be very useful to beginners.

--Deepikagohil 13:45, 27 September 2009 (UTC)


 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fHttpE3aE2fE2f217E2e218E2e225E2e2E3a2082E2findeE78E2ehtmlE253FX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ