<?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 - ListBox: Part VI - Comments</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html</link>
 <description>Comments for &quot;ListBox: Part VI&quot;</description>
 <language>en</language>
<item>
 <title>Re: ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-40205</link>
 <description>&lt;p&gt;hi every body&lt;br /&gt;
 i write a simple code into the multiviews example, i add a method to view&#039;s container. the code is follow&lt;br /&gt;
void CMultiViewsContainer1::DisplayListBox()&lt;br /&gt;
{&lt;br /&gt;
	m_listBox = new (ELeave) CAknSingleStyleListBox();&lt;br /&gt;
	m_listBox-&gt;SetListBoxObserver(this);&lt;br /&gt;
	m_listBox-&gt;SetContainerWindowL(*this);&lt;/p&gt;

&lt;p&gt;	m_listBox-&gt;ConstructL(this, 0);&lt;br /&gt;
	m_listBox-&gt;CreateScrollBarFrameL(ETrue);&lt;br /&gt;
	m_listBox-&gt;ScrollBarFrame()-&gt;SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);&lt;br /&gt;
	&lt;br /&gt;
	CTextListBoxModel* model = m_listBox-&gt;Model();&lt;br /&gt;
	MDesCArray* textArray = model-&gt;ItemTextArray();&lt;br /&gt;
	CDesCArray* listBoxItems = static_cast&lt;CDesCArray*&gt;(textArray);&lt;br /&gt;
	model-&gt;SetItemTextArray(listBoxItems);&lt;br /&gt;
	model-&gt;SetOwnershipType(ELbmOwnsItemArray);&lt;br /&gt;
	&lt;br /&gt;
	TBuf&lt;32&gt; item;&lt;br /&gt;
	_LIT(KIT1, &quot;item 1&quot;);&lt;br /&gt;
	_LIT(KIT2, &quot;item 2&quot;);&lt;br /&gt;
	&lt;br /&gt;
	item.Format(_L(&quot;\t%S\t\t&quot;), &amp;KIT1);&lt;br /&gt;
	listBoxItems-&gt;AppendL(item);&lt;br /&gt;
	return;&lt;br /&gt;
	item.Format(_L(&quot;%S&quot;), &amp;KIT2);&lt;br /&gt;
	&lt;br /&gt;
	listBoxItems-&gt;AppendL(item);&lt;br /&gt;
	&lt;br /&gt;
	m_listBox-&gt;HandleItemAdditionL();&lt;br /&gt;
	m_listBox-&gt;SetCurrentItemIndexAndDraw(listBoxItems-&gt;Count() - 1);&lt;br /&gt;
	m_listBox-&gt;ActivateL();&lt;br /&gt;
	&lt;br /&gt;
	DrawNow();&lt;br /&gt;
}&lt;br /&gt;
when i execute it in epoc, i got a error of cbase21, if i do not execute appendl of CDesCArray, it run ok , who can tell me why?&lt;br /&gt;
thanks&lt;br /&gt;
steve&lt;/p&gt;</description>
 <pubDate>Fri, 27 Jul 2007 11:35:15 +0200</pubDate>
 <dc:creator>stevexu</dc:creator>
 <guid isPermaLink="false">comment 40205 at http://www.newlc.com</guid>
</item>
<item>
 <title>ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-1238</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;If you want the main item icon to be empty, you&#039;ll need to create an icon with no foreground to it and just use its index.  If you want the trailing icons to be blank, just exclude them from the item text, such as:&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;item.Format(_L(&quot;%d\t%S&quot;), 0, &amp;KItemName); // 0 = icon index in iconlist&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Cheers,&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;TT&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 15 Aug 2006 09:38:29 +0200</pubDate>
 <dc:creator>Timothy Tripp</dc:creator>
 <guid isPermaLink="false">comment 1238 at http://www.newlc.com</guid>
</item>
<item>
 <title>ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-1235</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;&gt;&gt; item.Format(_L(&quot;%d\t%S\t%d\t%d&quot;), 0, &amp;KItemName, 1, 2); // 0, 1, 2 = icon indexes in iconlist&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;and if for some item i don&#039;t want any icon? what should be the symbol then? just a space or &quot;-&quot; don&#039;t work...&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 07 Jul 2006 14:52:46 +0200</pubDate>
 <dc:creator>stolik</dc:creator>
 <guid isPermaLink="false">comment 1235 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-1237</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;#include akniconarray.h // CAknIcon
#include aknlists.h
 //CAknSingleStyleListBox
#include aknutils.h
#include  barsread.h // TResource Reader
#include  eikclbd.h // CColumnListBoxData
#include eikmenub.h // CEikMenuBar
#include eiktxlbm.h
#include eiklbx.h
#include eiklbm.h
#include eiktxlbx.h&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;#include &amp;lt;stringloader.h&amp;gt; // StringLoader
#include &amp;lt;uikon.hrh&amp;gt; // TKeyCode #defines
#include &amp;lt;eiklabel.h&amp;gt;  // for example label control
#include&amp;lt;badesca.h&amp;gt;&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 25 Sep 2004 10:07:16 +0200</pubDate>
 <dc:creator>giridhar.N</dc:creator>
 <guid isPermaLink="false">comment 1237 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-1236</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;For Avkon listboxes you will need &quot;aknlists.h&quot;.&lt;/div&gt;</description>
 <pubDate>Mon, 29 Mar 2004 13:40:46 +0200</pubDate>
 <dc:creator>Felix</dc:creator>
 <guid isPermaLink="false">comment 1236 at http://www.newlc.com</guid>
</item>
<item>
 <title>&gt; ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html#comment-1234</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;&lt;p class=&quot;spip&quot;&gt;Can anybody tell me what are the header files invloved in this tutorial??&lt;/p&gt;

&lt;p class=&quot;spip&quot;&gt;Tanx&lt;/p&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 24 Mar 2004 11:00:58 +0100</pubDate>
 <dc:creator>pramoda</dc:creator>
 <guid isPermaLink="false">comment 1234 at http://www.newlc.com</guid>
</item>
<item>
 <title>ListBox: Part VI</title>
 <link>http://www.newlc.com/ListBox-Part-VI.html</link>
 <description>&lt;div class=&quot;spip-content&quot;&gt;The following code snippet shows how to create and initialize listbox. Certain parts of initialization are slightly different in case of CEikColumnListBox-derived and CEikFormattedCellListBox-derived listboxes.&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/ListBox-Part-VI.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/ListBox-Part-VI.html#comments</comments>
 <category domain="http://www.newlc.com/taxonomy/term/4">Series 60</category>
 <category domain="http://www.newlc.com/taxonomy/term/136">Listbox</category>
 <pubDate>Sun, 16 Nov 2003 21:59:53 +0100</pubDate>
 <dc:creator>klisa1</dc:creator>
 <guid isPermaLink="false">214 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
