Autor Beitrag
deluxe083
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Sa 25.02.06 00:05 
Hallo

Ich habe ein Problem.
Ich möchte in einem Memofeld angezeigt bekommen wie oft ich einen Button oder eine Checkbox angeklickt bzw. aktiviert habe habe. Wie mache ich das am einfachsten.


Danke im Voraus
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 25.02.06 00:16 
So zum Beispiel.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var
  Form1: TForm1;
   Checkzaehler:Integer;
implementation

{$R *.dfm}

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
 if Checkbox1.Checked then inc(Checkzaehler);
 Memo1.Text:= 'Checklistbox war '+IntToStr(Checkzaehler)+' mal Gescheckt !';
end;