<?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 - Regards TRect - Comments</title>
 <link>http://www.newlc.com/forum/regards-trect</link>
 <description>Comments for &quot;Regards TRect&quot;</description>
 <language>en</language>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45248</link>
 <description>&lt;p&gt;mdkashif: If you accidentally forgot to read the manual, and you&#039;re asking if there&#039;s an API to query a rect for its size and position, the first answer would be &quot;read the manual&quot;, and if you still can&#039;t find it, the answer is &quot;the member variables iTl and iBr are public&quot;.&lt;/p&gt;</description>
 <pubDate>Sat, 22 Mar 2008 13:54:47 +0100</pubDate>
 <dc:creator>puterman</dc:creator>
 <guid isPermaLink="false">comment 45248 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45176</link>
 <description>&lt;p&gt;I am often unsure myself about such rectangle positions, and if I need to be sure I just take the whole thing into the debugger and have a direct look. Very simple (if you know how to debug, which you should.)&lt;/p&gt;

&lt;p&gt;In this case I would say probably the coordinates are screen-absolute, i.e. the TRect gives the position of the corner of the container&#039;s window relative to the whole screen/display.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 10:25:20 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 45176 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45174</link>
 <description>&lt;p&gt;hi  But pls tell me  before shrink what will be the rect value, imean&lt;/p&gt;

&lt;p&gt;TRect rect = Rect();&lt;/p&gt;

&lt;p&gt;here what will be co-ordinate of rect.&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
kashif&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 10:11:37 +0100</pubDate>
 <dc:creator>mdkashif</dc:creator>
 <guid isPermaLink="false">comment 45174 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45173</link>
 <description>&lt;p&gt;Ok, then Rect() will give you the net size and position of the container&#039;s window. If you shring this rectangle by 10,10 you will draw into a rectangle that leaves a room of 10 pixels free on all four sides of the container window.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 10:06:01 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 45173 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45172</link>
 <description>&lt;p&gt;Hi  In Draw() and  container class.&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
kashif&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 09:59:13 +0100</pubDate>
 <dc:creator>mdkashif</dc:creator>
 <guid isPermaLink="false">comment 45172 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45171</link>
 <description>&lt;p&gt;Sorry, but you still don&#039;t say *where* you have that code: In which method of which class to you embedd the code that you list?&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 09:48:33 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 45171 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45169</link>
 <description>&lt;p&gt;Hi i am using this for draw the Ellipse , whole code for this.&lt;/p&gt;

&lt;p&gt;TRect rect = Rect();&lt;br /&gt;
rect.Shrink( 10, 10 );&lt;br /&gt;
gc.SetPenStyle( CGraphicsContext :: ESolidPen );&lt;br /&gt;
   gc.SetPenColor( KRgbBlack ); &lt;br /&gt;
   gc.SetPenSize( TSize( 5, 5 ) );&lt;br /&gt;
   gc.SetBrushStyle( CGraphicsContext :: ESolidBrush );&lt;br /&gt;
   gc.SetBrushColor( KRgbYellow );&lt;br /&gt;
   gc.DrawEllipse( rect );&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
kashif&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 09:22:57 +0100</pubDate>
 <dc:creator>mdkashif</dc:creator>
 <guid isPermaLink="false">comment 45169 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45167</link>
 <description>&lt;p&gt;It depends *where* you write that code, and which object is &quot;this&quot; i.e. the Rect() method of which object is called by executing your two lines of code.&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 08:37:01 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 45167 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45166</link>
 <description>&lt;p&gt;Hi Manish suppose i am use TRect like that&lt;/p&gt;

&lt;p&gt;    		TRect rect = Rect();&lt;br /&gt;
                                          rect.Shrink( 10, 10 );&lt;/p&gt;

&lt;p&gt;so tell me in this case what will be the value of rect.&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
kashif&lt;br /&gt;
                                      &lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 08:35:08 +0100</pubDate>
 <dc:creator>mdkashif</dc:creator>
 <guid isPermaLink="false">comment 45166 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45162</link>
 <description>&lt;p&gt;&gt;&gt;i want to know how we find actual size of TRect&lt;br /&gt;
TRect itself is size. What do you mean by that?&lt;/p&gt;

&lt;p&gt;&gt;&gt;i mean we consider screen as a rectange on the sthe screen of emulator&lt;br /&gt;
If you want to get the screen size then check out CWsScreenDevice::GetScreenModeSizeAndRotation api.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br /&gt;
Sri&lt;/p&gt;</description>
 <pubDate>Tue, 18 Mar 2008 07:00:40 +0100</pubDate>
 <dc:creator>srikanth</dc:creator>
 <guid isPermaLink="false">comment 45162 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect#comment-45151</link>
 <description>&lt;p&gt;your question is bit confusing . can you please explain it with examples.?&lt;/p&gt;</description>
 <pubDate>Mon, 17 Mar 2008 14:35:45 +0100</pubDate>
 <dc:creator>83.manish</dc:creator>
 <guid isPermaLink="false">comment 45151 at http://www.newlc.com</guid>
</item>
<item>
 <title>Regards TRect</title>
 <link>http://www.newlc.com/forum/regards-trect</link>
 <description>&lt;p&gt;Hi i want to know how we find actual size of TRect, i mean  we consider screen as a rectange on the s&lt;br /&gt;
the screen of emulator . any one dscribe this.&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
kashif&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/regards-trect&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/regards-trect#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 17 Mar 2008 13:51:29 +0100</pubDate>
 <dc:creator>mdkashif</dc:creator>
 <guid isPermaLink="false">20516 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
