<?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 - List Box event - Comments</title>
 <link>http://www.newlc.com/forum/list-box-event</link>
 <description>Comments for &quot;List Box event&quot;</description>
 <language>en</language>
<item>
 <title>Re: List Box event</title>
 <link>http://www.newlc.com/forum/list-box-event#comment-39899</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;thank you, i solved it by a very simple way as follows&lt;br /&gt;
void CMyAppListBoxDialog::HandleListBoxEventL(CQikListBox* aListBox, TQikListBoxEvent aEventType, TInt aItemIndex, TInt /*aSlotId*/)&lt;br /&gt;
	{&lt;br /&gt;
	if(aEventType==MQikListBoxObserver::EEventItemTapped)&lt;br /&gt;
		{&lt;br /&gt;
		MQikListBoxData* listBoxData = aListBox-&gt;Model().RetrieveDataL(aItemIndex);&lt;br /&gt;
		if(listBoxData-&gt;Text(EQikListBoxSlotText1)==KTextItem)&lt;br /&gt;
		{&lt;br /&gt;
			LaunchSelected FileDialog();&lt;br /&gt;
			&lt;br /&gt;
		}&lt;br /&gt;
		else if(listBoxData-&gt;Text(EQikListBoxSlotText1)==KTextItem2)&lt;br /&gt;
			{&lt;br /&gt;
				CMyAppPGridListBox::RunDlgLD();&lt;br /&gt;
			}&lt;br /&gt;
		listBoxData-&gt;Close();&lt;br /&gt;
			&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
//KTextItem and KTextItem2 represent the listbox item text&lt;/p&gt;

&lt;p&gt;and by this way, ican handle each any list box data item, but i&#039;m sure that there are an abetter way to do the same thing specially if if have more that 10 listbox items and each of them need a different event.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jul 2007 14:27:44 +0200</pubDate>
 <dc:creator>mrMattar</dc:creator>
 <guid isPermaLink="false">comment 39899 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: List Box event</title>
 <link>http://www.newlc.com/forum/list-box-event#comment-39885</link>
 <description>&lt;p&gt;You don&#039;t add &quot;events&quot; per se to list box items, or &quot;connect&quot; them somehow with list box items.&lt;/p&gt;

&lt;p&gt;You simply implement a HandleListBoxEventL method, e.g. in the class of the container of ListBox, that is called when any list box item is selected. There you can react in way you want, e.g. differently to the selection of the first and the selection of the second element.&lt;/p&gt;

&lt;p&gt;Btw, did you see that you somehow managed to post the same 4 times?&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jul 2007 08:23:25 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 39885 at http://www.newlc.com</guid>
</item>
<item>
 <title>List Box event</title>
 <link>http://www.newlc.com/forum/list-box-event</link>
 <description>&lt;p&gt;Hi All,&lt;br /&gt;
i&#039;m work in application use the ListBox component, i was added two listBox Items with different names, when the user select one of them, a grid view should be open to the one and selectFileDlg should be open for the another.&lt;/p&gt;

&lt;p&gt;all what i want is, how can i handle the listbox items to add a diiferent event for each one separetly.&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/list-box-event&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/list-box-event#comments</comments>
 <category domain="http://www.newlc.com/forums/uiq-applications">UIQ Applications</category>
 <pubDate>Sun, 15 Jul 2007 21:57:04 +0200</pubDate>
 <dc:creator>mrMattar</dc:creator>
 <guid isPermaLink="false">18354 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
