<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - how to create a dynamic list box - Comments</title>
 <link>http://www.newlc.com/en/topic-9654</link>
 <description>Comments for &quot;how to create a dynamic list box&quot;</description>
 <language>en</language>
<item>
 <title>Re: adding image in each listbox items ?????</title>
 <link>http://www.newlc.com/en/topic-9654#comment-23613</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: Neelakantan&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;when switching from the listbox view to another view .......i need the listbox item name in the next view.........&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You can use the following code to set the title of a view:&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;void YourClassName::SetAppTitleTextL(const TDesC&amp;amp; aTitleText)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CAknTitlePane* titlePane = STATIC_CAST( CAknTitlePane*,&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;StatusPane()-&amp;gt;ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;titlePane-&amp;gt;SetTextL( aTitleText );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Using the following code you will get the current sellected text from a listbox:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;TInt YourClassName::GetSelectedItemL(TDes&amp;amp; aResult) const&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CTextListBoxModel* model = iListBox-&amp;gt;Model();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if(model-&amp;gt;NumberOfItems()==0)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return KErrNotFound;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;aResult.Copy(model-&amp;gt;ItemText(iListBox-&amp;gt;CurrentItemIndex()));&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return KErrNone;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: Neelakantan&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;how to add image in each listbox item.....&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;For that you need to finalise which type of listbox you are planing to use. &lt;br /&gt;Check this link for reference: &lt;a href=&quot;http&amp;#58;//www.newlc.com/article.php3?id_article=136&quot; target=&quot;_blank&quot;&gt;http://www.newlc.com/article.php3?id_article=136&lt;/a&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 05:47:03 +0200</pubDate>
 <dc:creator>vin2ktalks</dc:creator>
 <guid isPermaLink="false">comment 23613 at http://www.newlc.com</guid>
</item>
<item>
 <title>adding image in each listbox items ?????</title>
 <link>http://www.newlc.com/en/topic-9654#comment-23612</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;br /&gt;&lt;br /&gt; hi.....&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;now i have created the dynamic listbox....when switching from the listbox view to another view .......i need the listbox item name in the next view.........&lt;br /&gt;&lt;br /&gt;how to add image in each listbox item.....&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 11:17:54 +0200</pubDate>
 <dc:creator>sundar</dc:creator>
 <guid isPermaLink="false">comment 23612 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: how to create a dynamic list box</title>
 <link>http://www.newlc.com/en/topic-9654#comment-23611</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;The easiest way, is is clear the list and reipopulate it rather than trying to insert or delete particular items.&lt;br /&gt;Thats the way I do it anyway. Its clean and simple.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Isseyp&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 08 Aug 2005 12:00:01 +0200</pubDate>
 <dc:creator>isseyp</dc:creator>
 <guid isPermaLink="false">comment 23611 at http://www.newlc.com</guid>
</item>
<item>
 <title>how to create a dynamic list box</title>
 <link>http://www.newlc.com/en/topic-9654</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-9654&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-9654#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Mon, 08 Aug 2005 08:12:26 +0200</pubDate>
 <dc:creator>sundar</dc:creator>
 <guid isPermaLink="false">10123 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
