Changed now !<br><br><div class="gmail_quote">2009/11/2 Howard Page-Clark <span dir="ltr"><<a href="mailto:hdpc@talktalk.net">hdpc@talktalk.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Under Windows (XP SP3) the Version page of Lazarus' About dialog does<br>
not display correctly, with 'Lazarus' text obscuring 'Free Pascal' (see<br>
attached screenshot).<br>
By amending the OnPaint method of the PaintBox1 control in<br>
\lazarus\ide\aboutfrm.pas<br>
as follows:<br>
<br>
procedure TForm1.PaintBox1Paint(Sender: TObject);<br>
begin<br>
with PaintBox1.Canvas do<br>
begin<br>
Font.Color:= RGBToColor(63,97,197);<br>
Font.Size:= 14; // Font.Size:= 16;<br>
TextOut(66,0, 'Free Pascal'); // TextOut(55,0, 'Free Pascal');<br>
Font.Size:= 24; // Font.Size:= 36;<br>
Font.Style:= [fsBold];<br>
TextOut(51,20, 'Lazarus'); // TextOut(5,10, 'Lazarus');<br>
Brush.Color:= clRed;<br>
Pen.Color:= clRed;<br>
Rectangle(60,63,170,81);<br>
Font.Color:= clWhite;<br>
Font.Size:= 10;<br>
TextOut(90,63, 'Project');<br>
end;<br>
end;<br>
<br>
the page displays correctly in Windows.<br>
Presumably the developer of this bit of the ide tried it on his Mac or<br>
Linux system and it displayed OK as coded in the repository.<br>
<br>
Is there a cross-platform way to code such fancily formatted<br>
strings which would ensure they are centred and non-overlapping and so<br>
avoid altogether the need to hard-code pixel positions and text<br>
lengths?<br>
<br>
yours<br>
<font color="#888888"><br>
Howard<br>
</font><br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Laurent.<br><br>