<?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 - about ListBox selection....... - Comments</title>
 <link>http://www.newlc.com/en/topic-9701</link>
 <description>Comments for &quot;about ListBox selection.......&quot;</description>
 <language>en</language>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-44386</link>
 <description>&lt;p&gt;Mr Bashar. please expalin me what will be the code      in Ui.cpp. Iam very much canfused. My application is getting closed (program closed)  as we run the application in the emeulator.&lt;/p&gt;

&lt;p&gt;where I have went wrong?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 06 Feb 2008 14:34:24 +0100</pubDate>
 <dc:creator>shravan_vip</dc:creator>
 <guid isPermaLink="false">comment 44386 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23694</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks CG&lt;br /&gt;&lt;br /&gt;i have solved that problem&lt;br /&gt;&lt;br /&gt;bashar&lt;/div&gt;</description>
 <pubDate>Fri, 12 Aug 2005 06:27:47 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23694 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23693</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;The class is abstract and cannot be instantiated.&amp;nbsp; &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;Try&amp;nbsp; CDesCArrayFlat instead;&lt;br /&gt;&lt;br /&gt;Bye;&lt;br /&gt;CG&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 11:25:33 +0200</pubDate>
 <dc:creator>CG</dc:creator>
 <guid isPermaLink="false">comment 23693 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23692</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks CG&lt;br /&gt;&lt;br /&gt;previously i used resource file for the ListBox now i want without resource. i have changed my code but it gives linking error&lt;br /&gt;&lt;br /&gt;how can i solve&lt;br /&gt;&lt;br /&gt;code:&lt;br /&gt;&lt;br /&gt;iListBox = new (ELeave) CAknSingleNumberStyleListBox();&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iListBox-&amp;gt;SetContainerWindowL(*this);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iListBox-&amp;gt;ConstructL(this,EAknListBoxSelectionList);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CDesC16Array* array = new (ELeave) CDesCArray(5 ); //&lt;span style=&quot;color: Red;&quot;&gt;here gives the error message&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PushL(array);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array-&amp;gt;AppendL(_L(&amp;quot;1\tItem1&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array-&amp;gt;AppendL(_L(&amp;quot;2\tItem2&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array-&amp;gt;AppendL(_L(&amp;quot;3\tItem3&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array-&amp;gt;AppendL(_L(&amp;quot;4\tItem4&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;array-&amp;gt;AppendL(_L(&amp;quot;5\tItem5&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::Pop();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iListBox-&amp;gt;Model()-&amp;gt;SetItemTextArray(array);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Â  Â  SetRect(aRect);&lt;br /&gt;Â  Â  ActivateL(); &lt;br /&gt;&lt;br /&gt;where is the problem? &lt;br /&gt;&lt;br /&gt;i have included &lt;br /&gt;&lt;br /&gt;#include &amp;quot;MyFirstAppContainer.h&amp;quot;&lt;br /&gt;#include &amp;lt;eiklabel.h&amp;gt;Â  // for example label control&lt;br /&gt;#include &amp;lt;aknlists.h&amp;gt;&lt;br /&gt;#include &amp;lt;badesca.h&amp;gt;&lt;br /&gt;&lt;br /&gt;pls someone give the response&lt;br /&gt;&lt;br /&gt;thks&lt;br /&gt;&lt;br /&gt;bashar&lt;/div&gt;</description>
 <pubDate>Thu, 11 Aug 2005 11:15:50 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23692 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23691</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&amp;gt;now i want to know how can i go in &amp;quot;Item 1&amp;quot;(one of ListBox item) by pressing ok&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;/**&lt;br /&gt;* Called by the framework whenever a list event occurs for which this container&lt;br /&gt;* is an observer.&lt;br /&gt;* @param aListBoxEvent The type of event which occured&lt;br /&gt;*&lt;br /&gt;*/&lt;br /&gt;void CMyContainer::HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aListBoxEvent)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;// if the Select Key has been pressed&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if ((aListBoxEvent == MEikListBoxObserver::EEventEnterKeyPressed) || (aListBoxEvent == MEikListBoxObserver::EEventItemClicked)) {&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;if (iMyListBox) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Do something with ...&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;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;//...((*iMyList)[iMyListBox-&amp;gt;CurrentItemIndex()]);&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;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;}&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;regards;&lt;br /&gt;CG&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 17:32:14 +0200</pubDate>
 <dc:creator>CG</dc:creator>
 <guid isPermaLink="false">comment 23691 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23690</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;TKeyResponse mycontainer::OfferKeyEventL(const TKeyEvent&amp;amp; aKeyEvent, TEventCode aType)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return iListBox-&amp;gt;OfferKeyEventL(aKeyEvent, aType);&lt;br /&gt;}&lt;/div&gt;and don&amp;#039;t forget to set focus to your listbox in ConstructL&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 15:30:19 +0200</pubDate>
 <dc:creator>Core_RUS_</dc:creator>
 <guid isPermaLink="false">comment 23690 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23689</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks. &lt;br /&gt;&lt;br /&gt;sorry i cann&amp;#039;t agree with u. i want some suggestions not source code. if u know the right way then just inform me about that. thats all.&lt;br /&gt;&lt;br /&gt;anyway thanks again for your attention &lt;br /&gt;&lt;br /&gt;bashar &lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 14:13:05 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23689 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23688</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: eric&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;You won&amp;#039;t learn if you expect people to post the exact snippet of code that you require.&lt;br /&gt;&lt;/div&gt;unfortunately, most of newbies just want the sources :\&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 13:44:17 +0200</pubDate>
 <dc:creator>Core_RUS_</dc:creator>
 <guid isPermaLink="false">comment 23688 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23687</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;hi all&lt;br /&gt;&lt;br /&gt;thanks i have solved the problem now i can navigate the ListBox items&lt;br /&gt;&lt;br /&gt;now i want to know how can i go in &amp;quot;Item 1&amp;quot;(one of ListBox item) by pressing ok&lt;br /&gt;&lt;br /&gt;anybody can help?&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;&lt;br /&gt;bashar&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 13:22:31 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23687 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23686</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Look how the OfferKeyEventL function is managed in a listbox example code.&lt;br /&gt;You won&amp;#039;t learn if you expect people to post the exact snippet of code that you require.&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 09:40:34 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 23686 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23685</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks pls tell me how? &lt;br /&gt;&lt;br /&gt;pls specify&lt;br /&gt;&lt;br /&gt;thks&lt;br /&gt;bashar &lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 09:34:21 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">comment 23685 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701#comment-23684</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I think you forgot to forward the keyevents to your listbox in your offerkeyevent function.&lt;br /&gt;&lt;br /&gt;yucca&lt;/div&gt;</description>
 <pubDate>Wed, 10 Aug 2005 09:15:41 +0200</pubDate>
 <dc:creator>yucca</dc:creator>
 <guid isPermaLink="false">comment 23684 at http://www.newlc.com</guid>
</item>
<item>
 <title>about ListBox selection.......</title>
 <link>http://www.newlc.com/en/topic-9701</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-9701&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-9701#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Wed, 10 Aug 2005 09:04:24 +0200</pubDate>
 <dc:creator>bashar</dc:creator>
 <guid isPermaLink="false">10164 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
