<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 1/11/2023 10:32 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:0d68e72a-26d7-da87-3e18-e266c62d3cf6@free.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</blockquote>
<br>
Hi Folks,<br>
<br>
The artifact was actually also there for BitBltCanvas. Just fixed
it. Fix is at GitHub.<br>
<br>
Thanks for reporting!<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>