[fpc-pascal]GTK: multiline label

Michael Weinert weinert at sys2.de
Thu Oct 9 10:10:36 CEST 2003


-----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  weinert at sys2.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-----





More information about the fpc-pascal mailing list