Autor Beitrag
Dia
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 26



BeitragVerfasst: Mi 14.09.05 18:39 
Hallo,

ich will, das wenn der User auf den Button drückt, sich die Farbe der Schrift verändert. Dazu habe ich folgenden Code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
case Button1.Font.Color of
clBlack: Button.Font.Color := clLime;
clLime: Button.Font.Color := clBlack;
end;


Aber es funktioniert einfach nicht.

Gruß

Claudia
Spaceguide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Mi 14.09.05 18:56 
Nimm mal TBitBtn.
Dia Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 26



BeitragVerfasst: Mi 14.09.05 19:49 
Danke, hat funktioniert.
Aber warum bietet Delpi überhaupt Button.Font.Color an, wenn's dann nicht funktioniert???
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 14.09.05 19:52 
Ganz einfach: weil das in der Elternklasse auch funktioniert.

AXMD