Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-10

WinCE strings

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Fortuny

Hi Folks.

I'm facing again a boring problem: a TLabel is dropped onto a TForm. Then somewhere in the application the following snippet is executed:

...
MyForm.MyLabel.Caption := 'Hi Folks' +#13#10+ 'Are you there ?'; MyForm.ShowModal;
...
and what is displayed on the scrren in the label caption is: Hi Folks??Are you there ?
Where the two black squares are just white squares. It looks like the CR+LF are made undisplayable chars or, at least, not interpreted as carriage return, line feed.
Same if +#13#10+ is replaced by char(13)+char(10)
I guess there is something to do with UTF-8 because the same text displayed using the well known MessageDlg looks good.

Reply by email

Hans-Peter Diettrich
to Antonio Fortuny
Show quoted text 11 lines
Hi Folks. I'm facing again a boring problem: a TLabel is dropped onto a TForm. Then somewhere in the application the following snippet is executed: ... MyForm.MyLabel.Caption := 'Hi Folks' +#13#10+ 'Are you there ?'; MyForm.ShowModal; ... and what is displayed on the scrren in the label caption is: Hi Folks??Are you there ?

Wild guess: the label properties lack multiline style?

DoDi

Reply by email

Felipe Monteiro de Carvalho
to Hans-Peter Diettrich

Probably the corresponding WinAPI from WinCE lacks the hability to render multiple lines of text. There are many small differences between Win32/64 APIs and WinCE APIs which cause such issues.

Felipe Monteiro de Carvalho

Reply by email