<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 11/01/2023 à 13:04, Barry Perryman
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com">The
first one is the when I set the size of the GUI elements to
something other than default I can see a gap on the left and the
right hand sides between the top of the window and the title bar,
I've attached a small screen shot so you can see what I'm talking
about. If I reset this back to default the missing piece is still
missing. </blockquote>
<p><br>
</p>
<p>All windows are kind of SystemWindow. When browsing this class,
you see the method drawRoundedFrameOn:color: There is somewhere a
rounding problem, a temporary fix is to add the rounded message as
below:<br>
</p>
<p><font face="monospace">SystemWindow>>drawRoundedFrameOn:
aCanvas color: widgetsColor<br>
aCanvas<br>
drawRoundedFrame: self morphLocalBounds<br>
border: borderWidth <br>
color: widgetsColor<br>
insideColor: color<br>
labelHeight: self labelHeight <b>rounded</b>.</font></p>
<p><br>
</p>
<p>Juan, I suspect you have different way of rounding or not in the
BltCanvas and HybridCanvas engines.</p>
<p>When I added the message "self labelHeight print" in the drawing
method above, it outputs 26.548555, you see... Could it be you are
truncating in the HybridCanvas drawing methods and rounding in the
BltCanvas ones? Those explaining the 1 pixel gap.<br>
</p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>