Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Größe eines Bildes (https://www.delphipraxis.net/3760-groesse-eines-bildes.html)

citybreaker 28. Mär 2003 19:02


Größe eines Bildes
 
Hallo!
Ich habe 2 Formulare, im 1.
ist ein Eingabefeld und im
2. ein Image. Nun soll man
im Eingabefeld eingeben wie
Groß das Image im 2. Formular
sein soll.

Jetzt habe ich folgendes versucht.

Code:
Form2.Image.Width := Edit1.Text;
Leider geht das nicht. Wie soll
ich das nun anstellen, das es
klappt?

Christian Seehase 28. Mär 2003 19:06

Moin Citybreaker,

Delphi-Quellcode:
Form2.Image.Width := StrToIntDef(Edit1.Text,32);
(die 32 ist natürlich willkürlich als Standardbreite gewählt)


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz