Sign in Join

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

Mailing lists / fpc-pascal / 2003-10

GTK: multiline label

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Peter Huesser

Hello

How ist possible to make initialize in fpc a multiline label. Something like

	Lbl := gtk_label_new('Line1 \n Line2');

I guess but with what do I have to replace the "\n" ?

Thank's for any help

Pedro

Olaf Leidinger
to Peter Huesser

Hello!

How ist possible to make initialize in fpc a multiline label. Something like Lbl := gtk_label_new('Line1 \n Line2');

I did't test it, but something like this should work:

	Lbl := gtk_label_new('Line1 ' + #10 + ' Line2');

Ciao,

Olaf

Michael Weinert
to Peter Huesser: Hello How ist possible to make initialize in fpc a multiline label. Something like Lbl :=…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 9. Oktober 2003 09:18 schrieb Peter Huesser:

Hi,

How ist possible to make initialize in fpc a multiline label. Something like Lbl := gtk_label_new('Line1 \n Line2'); I guess but with what do I have to replace the "\n" ?

This might help:

lbl := gtk_label_new('Line1 '+chr(10)+chr(13)+'Line2');

If it doesn't work this way try to define the string first. I would define such strings in a constant way anyway.

Michael.

- --

SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273 http://www.linux-firewall.de
KeyServer hkp://pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP4UX/Kvpi4/XslceAQLoCAx+LzNAEdRdW9wDgoImT+JtYY/4nbJbyk/U AM5fYId6AMe4ynAp1HB0wVm0iwZOO9KWYG6o3DTv2ofOcuPyJZvYa7q5WP0xM6xF Immzvago27UKzwAmRhKHXLHLHF5UQei5w7fjhSEpTvr9e/Cf1V0M0vcE2PUiw8Xx oJBs1w+6hbQ6fUwJKWiEdYHVJ+pj86YV9d3E+MICYX2qXgc3g3IQ3o3xqdiO9scl fmItLxKwj8C+1SD3fa8UVRgba6U/t3m+YJBHqtrg+92ToaaXtcVZtuGK8h89/45j lA4nMN4Ra/I5b82B6eoNhjQMgWZoA0Jrwn0UtrRfSUgaMrF8dk3/FjaeQQQgDKke ZJU46PFQmUArumTH7mwtSQszeuK0V5mbR9iJtRFgM26FJOyYheu022Cr+MtG/f+s pxlQhzXFqxQT5kikTbHQjuOJ1xmw8oN9NYaPmwrHLqsg8Ypm/RIhNkqh97e01g75 MdAHLhjPUvQBFsFBHLCv/jXsU2McrG6oXR6pQBdcZzUlSXE2HBYAAQ== =J8e7
-----END PGP SIGNATURE-----

James Mills
to Gene Buckle
Gene Buckle wrote 12 lines
> Hello > > How ist possible to make initialize in fpc a multiline label. Something like > > Lbl := gtk_label_new('Line1 \n Line2'); > > I guess but with what do I have to replace the "\n" ? > > Thank's for any help > Would gtk_label_new('Line1' + #13 + 'Line2'); work?

Probably only for Linux/Unix

cheers
James

- -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.