<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello!<br>
<br>
For example, there is small bug corresponding to this problem. See
function «ImplDrawDropdownArrow» in «toolbox.cxx» («vcl» module).<br>
A lines<br>
long x = rDropDownRect.Left() + (rDropDownRect.getWidth() -
width)/2;<br>
long y = rDropDownRect.Top() + (rDropDownRect.getHeight() -
height)/2;<br>
<br>
use wrong functions getHeight() and getWidth() , but really should
use GetHeight() and GetWidth(). <br>
So, this problem causes the dropdown arrows of menubuttons on
toolboxes to be shifted left.<br>
<br>
<img alt="Shifted left dropdown arrow" title="Shifted left dropdown
arrow" src="cid:part1.07040007.02030909@gmail.com" border="1"
height="172" width="223"> <br>
<br>
18.08.2011 13:21, Michael Meeks пишет:
<blockquote cite="mid:1313659292.1806.279.camel@lenovo-w500"
type="cite">
<pre wrap="">
On Wed, 2011-08-17 at 23:08 +0200, Thorsten Behrens wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Dmitry - yes, the two different methods are surely confusing. As
for the "wrong value", that very much depends on the mental model of
rectangles you're using. In a discrete geometry world (aka "pixel"),
the GetWidth() is correct. In a continuous geometry world (aka
"euclidean plane"), getWidth() is right.
</pre>
</blockquote>
<pre wrap="">
        Ho ;-) Should we perhaps have some better naming: 'getOuterWidth' vs.
'getWidth' or something ;-)
</pre>
<blockquote type="cite">
<pre wrap="">This fundamental, conceptual difference is the historical reason for
the two methods (admittedly, not a very clean solution to the
problem).
</pre>
</blockquote>
<pre wrap="">
        True - perhaps we should audit all calls of GetWidth on Rectangle to
see how many there are and update them if fewer than a couple of hundred
or so ?
        ATB,
                Michael.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Best Regards,
Dmitry</pre>
</body>
</html>