<?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 and icon problem.... - Comments</title>
 <link>http://www.newlc.com/en/topic-9771</link>
 <description>Comments for &quot;ListBox and icon problem....&quot;</description>
 <language>en</language>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-46823</link>
 <description>&lt;p&gt;Hi vin2ktalks,&lt;/p&gt;

&lt;p&gt;what is this array:--&lt;/p&gt;

&lt;p&gt;iCtrlArray.Append( iListBox );&lt;/p&gt;

&lt;p&gt;in the last line of CreateListBoxL() doing?&lt;/p&gt;

&lt;p&gt;could u plz reply? I&#039;m following ur code to make a graphics list box.&lt;/p&gt;</description>
 <pubDate>Tue, 03 Jun 2008 09:46:54 +0200</pubDate>
 <dc:creator>tusharbhatta</dc:creator>
 <guid isPermaLink="false">comment 46823 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23852</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I declared it in the header file like this:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;CEikColumnListBox* iListBox;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 23 Oct 2006 10:05:21 +0200</pubDate>
 <dc:creator>vin2ktalks</dc:creator>
 <guid isPermaLink="false">comment 23852 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23851</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;hi&lt;br /&gt;vin2ktalks how are you declare &amp;nbsp;&amp;nbsp;&amp;nbsp;iListBox in CMyApContainer.h?&lt;/div&gt;</description>
 <pubDate>Fri, 20 Oct 2006 03:24:50 +0200</pubDate>
 <dc:creator>Aykis</dc:creator>
 <guid isPermaLink="false">comment 23851 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23850</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;HI,&amp;nbsp; &lt;br /&gt;how to giv different icons for each coloum?&lt;br /&gt;hoping help &lt;br /&gt;regs Julie&lt;/div&gt;</description>
 <pubDate>Tue, 21 Feb 2006 17:22:41 +0100</pubDate>
 <dc:creator>julie_777</dc:creator>
 <guid isPermaLink="false">comment 23850 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23849</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Try with the below code:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;void CMyAppContainer::CreateListBoxL()&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;//Delete the list box if already exists.&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if ( iListBox )&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;delete iListBox;&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;iListBox = NULL;&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;// listbox instance&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox = new (ELeave) CAknSingleLargeStyleListBox();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;ConstructL(this, EAknListBoxSelectionList);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;SetContainerWindowL(*this); &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;// add scrollbars to listbox &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;CreateScrollBarFrameL(ETrue); &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;ScrollBarFrame()-&amp;gt;SetScrollBarVisibilityL( CEikScrollBarFrame::EOn,&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;CEikScrollBarFrame::EAuto ); &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;const TPoint aPoint(0,0);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;const TSize aSize(180,150);&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;//most important line , else the list box simply disappears&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;SetExtent(aPoint,aSize);&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;//Fill list box with the data&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;InitListBox();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;ActivateL();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;DrawNow();&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;iCtrlArray.Append( iListBox );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;br /&gt;void CMyAppContainer::InitListBox()&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;CDesCArray *itemList = new (ELeave) CDesCArrayFlat(KGranularityOfArray); &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;itemList-&amp;gt;AppendL(_L(&amp;quot;0\tItem01&amp;quot;));&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;itemList-&amp;gt;AppendL(_L(&amp;quot;1\tItem02&amp;quot;));&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;itemList-&amp;gt;AppendL(_L(&amp;quot;2\tItem03&amp;quot;));&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;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// set items and ownership &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;Model()-&amp;gt;SetItemTextArray(itemList); &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;Model()-&amp;gt;SetOwnershipType(ELbmOwnsItemArray); &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;SetCurrentItemIndex(0);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;SetFocus(ETrue);&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;CArrayPtr&amp;lt;CGulIcon&amp;gt;* iconList = new (ELeave) CAknIconArray(KGranularityOfArray);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CleanupStack::PushL(iconList); &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;_LIT( KIconFile,&amp;quot;z:\\system\\data\\avkon.mbm&amp;quot;);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iconList-&amp;gt;AppendL( iEikonEnv-&amp;gt;CreateIconL( KIconFile, EMbmAvkonQgn_note_ok, EMbmAvkonQgn_note_ok_mask) );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iconList-&amp;gt;AppendL( iEikonEnv-&amp;gt;CreateIconL( KIconFile, EMbmAvkonQgn_note_bt, EMbmAvkonQgn_note_bt_mask) );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iconList-&amp;gt;AppendL( iEikonEnv-&amp;gt;CreateIconL( KIconFile, EMbmAvkonQgn_note_sml, EMbmAvkonQgn_note_sml_mask) );&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;ItemDrawer()-&amp;gt;ColumnData()-&amp;gt;SetIconArray( iconList );&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CleanupStack::Pop(); // iconList &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iListBox-&amp;gt;HandleItemAdditionL();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 13 Aug 2005 04:01:10 +0200</pubDate>
 <dc:creator>vin2ktalks</dc:creator>
 <guid isPermaLink="false">comment 23849 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23848</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks&lt;br /&gt;&lt;br /&gt;i have tried with that but it doesn&amp;#039;t work&lt;br /&gt;&lt;br /&gt;anyway thanks&lt;br /&gt;&lt;br /&gt;bashar&lt;/div&gt;</description>
 <pubDate>Fri, 12 Aug 2005 14:07:18 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23848 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771#comment-23847</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;maybe you could try using CAknSingleGraphicStyleListBox ?&lt;br /&gt;&lt;br /&gt;yucca&lt;/div&gt;</description>
 <pubDate>Fri, 12 Aug 2005 12:33:46 +0200</pubDate>
 <dc:creator>yucca</dc:creator>
 <guid isPermaLink="false">comment 23847 at http://www.newlc.com</guid>
</item>
<item>
 <title>ListBox and icon problem....</title>
 <link>http://www.newlc.com/en/topic-9771</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-9771&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-9771#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Fri, 12 Aug 2005 11:38:23 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">10219 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
