Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi checkbox, edit und button (https://www.delphipraxis.net/124580-checkbox-edit-und-button.html)

jimo 16. Aug 2009 19:23

Re: checkbox, edit und button
 
Hab schon rausbekommen, dennoch danke für die Hilfe
So im nachhinein könnt ich mich dafür Ohrfeigen -.-, so einfach ey

Delphi-Quellcode:
begin
     text := (Edit1.Text);

     if(CheckBox1.Checked) then
     CheckBox1.Caption := (text);
end;

Matze 16. Aug 2009 19:25

Re: checkbox, edit und button
 
Ja genau. Wenn du jetzt noch die Klammern weg lässt, wird es meiner Meinung nach lesbarer. Dann richtig formatieren und fertig:

Entweder so:
Delphi-Quellcode:
text := Tdit1.Text;

if CheckBox1.Checked then
  CheckBox1.Caption := text;
oder so:
Delphi-Quellcode:
if CheckBox1.Checked then
  CheckBox1.Caption := Edit1.Text;
Und das solltest du noch durcharbeiten: Delphi-Crashkurs.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:16 Uhr.
Seite 2 von 2     12   

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