![]() |
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:
Leider geht das nicht. Wie soll
Form2.Image.Width := Edit1.Text;
ich das nun anstellen, das es klappt? |
Moin Citybreaker,
Delphi-Quellcode:
(die 32 ist natürlich willkürlich als Standardbreite gewählt)
Form2.Image.Width := StrToIntDef(Edit1.Text,32);
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:03 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz