<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi John,<br>
<br>
A TLabel with Caption:='Abc' and Canvas.TextOut(1,1,'Abc') gives
exactly the same output. <br>
<br>
I've tried it in KOL and it works perfectly. I really like the small
size of the exe, but I want my software to work with LCL. Eventually I
want to port half a million lines of Delphi code and deploy on Linux,
Mac, etc. Right now I just need to draw a diagram in WinCE which
includes text...<br>
<br>
Regards,<br>
<br>
Paul.<br>
<br>
<br>
John vd Waeter wrote:
<blockquote cite="mid:4981E7EA.6060503@jvdw.nl" type="cite">
<pre wrap="">Paul van Helden wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi All,
I'm new to Lazarus having decided to switch from Delphi for a WinCE
project. I'm stumped though. Labels on forms display garbage characters.
Having spent a whole two days learning about Lazarus internals, Unicode,
Widestrings, etc., I'm now pulling out my hair and the project cannot
continue.
The following code produces the same "garbage characters":
procedure TGPSForm.SatellitePaintBoxPaint(Sender: TObject);
var
Rect: TRect;
Dx: Integer;
W: WideString;
begin
with SatellitePaintBox do
begin
Rect:=ClientRect;
W:='Abc';
Windows.ExtTextOutW(Canvas.Handle, 1, 1, 0, LPRECT(@Rect),
PWideChar(W), Length(W), @Dx);
end;
end;
Any ideas?
</pre>
</blockquote>
<pre wrap=""><!---->
Hmm,
Dunno, I use KOL without major problems.
But what is output when you try:
with SatellitePaintBox do
begin
Canvas.Textou(1,1,'Abc');
end;
?
John
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
</body>
</html>