<?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 - borders and CEikEdwin - Comments</title>
 <link>http://www.newlc.com/topic-15664</link>
 <description>Comments for &quot;borders and CEikEdwin&quot;</description>
 <language>en</language>
<item>
 <title>Re: borders and CEikEdwin</title>
 <link>http://www.newlc.com/topic-15664#comment-34008</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;Probably. This depends on how you set the extent of your listbox. If you set the listbox extent to the whole size of its parent then you won&amp;#039;t see your border.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;BENGO this is the problem ... i set the rect to the listbox ...&lt;br /&gt;but now how can i SetExtent for the listbox ... i have a listboxÂ  as CAknColumnList&lt;br /&gt;and i tired to SetExtent for it but it didn&amp;#039;t work i had the following&amp;nbsp; build error &lt;br /&gt;&amp;quot;CCoeControl::SetExtent function does not take 1 argument&amp;quot;&lt;br /&gt;here is the code i use to create my listbox and textbox&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;iListBox = new (ELeave) CAknSingleGraphicStyleListBox;&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;ConstructL(this, EAknListBoxSelectionList);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;SetContainerWindowL(*this);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBoxRows = new (ELeave) CDesCArrayFlat( KGranularityOfArray );&lt;br /&gt;&amp;nbsp; &amp;nbsp; iId = new (ELeave) CDesCArrayFlat( KGranularityOfArray );&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;Model()-&amp;gt;SetItemTextArray( iListBoxRows );&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;Model()-&amp;gt;SetOwnershipType(ELbmDoesNotOwnItemArray);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;ActivateL();&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;CreateScrollBarFrameL(ETrue);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;ScrollBarFrame()&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;SetCurrentItemIndex(0);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iListBox-&amp;gt;SetExtent(Listbox_pos , Listbox_size );&lt;br /&gt;&amp;nbsp; &amp;nbsp;SetupListIconsL();&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;//textbox for search&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1 = new (ELeave)&amp;nbsp; CEikEdwin;&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1-&amp;gt;ConstructL(0,KDefaultWidth,KDefaultTextLimit,KDefaultNumberOfLines);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1-&amp;gt;SetContainerWindowL(*this);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1-&amp;gt;SetExtent(EDWIN1_POS, iEdwin1-&amp;gt;MinimumSize());&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1-&amp;gt;SetBorder(TGulBorder::ESingleBlack);&lt;br /&gt;&amp;nbsp; &amp;nbsp; iEdwin1-&amp;gt;SetFocus(ETrue);&lt;br /&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; help .... please&lt;/div&gt;</description>
 <pubDate>Mon, 21 Aug 2006 10:59:19 +0200</pubDate>
 <dc:creator>com4</dc:creator>
 <guid isPermaLink="false">comment 34008 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: borders and CEikEdwin</title>
 <link>http://www.newlc.com/topic-15664#comment-34007</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Probably. This depends on how you set the extent of your listbox. If you set the listbox extent to the whole size of its parent then you won&amp;#039;t see your border.&lt;/div&gt;</description>
 <pubDate>Thu, 17 Aug 2006 17:34:49 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 34007 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: borders and CEikEdwin</title>
 <link>http://www.newlc.com/topic-15664#comment-34006</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: Badshah&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;Hi,&lt;br /&gt;Â  Â  ImplementÂ  this code in your container&amp;#039;s Draw function&lt;br /&gt;&lt;br /&gt;CWindowGc&amp;amp; gc = SystemGc();&lt;br /&gt;gc.SetPenStyle(CGraphicsContext::ESolidPen);&lt;br /&gt;gc.SetPenColor(KRgbBlack);&lt;br /&gt;TRect rect(iEdwin1-&amp;gt;Rect());&lt;br /&gt;rect.Grow(1,1);&lt;br /&gt;TGulBorder border(iEdwin1-&amp;gt;Border());&lt;br /&gt;border.SetType(TGulBorder::ESingleBlack);&lt;br /&gt;border.Draw (gc, rect);&lt;br /&gt;&lt;br /&gt;hope this will help you&lt;br /&gt;regards&lt;br /&gt;Badshah &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;[/quot]&lt;br /&gt;&lt;br /&gt;thanx alot for your reply&lt;br /&gt;but it didn&amp;#039;t work ..&amp;nbsp; &lt;br /&gt;i have a listbox in the container too so do u thing this is the problem ..?/&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 17 Aug 2006 16:59:50 +0200</pubDate>
 <dc:creator>com4</dc:creator>
 <guid isPermaLink="false">comment 34006 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: borders and CEikEdwin</title>
 <link>http://www.newlc.com/topic-15664#comment-34005</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;Â  Â  ImplementÂ  this code in your container&amp;#039;s Draw function&lt;br /&gt;&lt;br /&gt;CWindowGc&amp;amp; gc = SystemGc();&lt;br /&gt;gc.SetPenStyle(CGraphicsContext::ESolidPen);&lt;br /&gt;gc.SetPenColor(KRgbBlack);&lt;br /&gt;TRect rect(iEdwin1-&amp;gt;Rect());&lt;br /&gt;rect.Grow(1,1);&lt;br /&gt;TGulBorder border(iEdwin1-&amp;gt;Border());&lt;br /&gt;border.SetType(TGulBorder::ESingleBlack);&lt;br /&gt;border.Draw (gc, rect);&lt;br /&gt;&lt;br /&gt;hope this will help you&lt;br /&gt;regards&lt;br /&gt;Badshah &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 17 Aug 2006 15:45:54 +0200</pubDate>
 <dc:creator>Badshah</dc:creator>
 <guid isPermaLink="false">comment 34005 at http://www.newlc.com</guid>
</item>
<item>
 <title>borders and CEikEdwin</title>
 <link>http://www.newlc.com/topic-15664</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-15664&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-15664#comments</comments>
 <category domain="http://www.newlc.com/forums/user-interface">User Interface</category>
 <pubDate>Thu, 17 Aug 2006 10:22:37 +0200</pubDate>
 <dc:creator />
 <guid isPermaLink="false">15440 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
