Autor Beitrag
Pansen!
Hält's aus hier
Beiträge: 5

Windows XP
Delphi 7
BeitragVerfasst: Mi 07.12.05 17:49 
Hallo,wie kann ich mit einer ComboBox die Hintergrundfarbe der Tfont1 ändern?

Die strings hab ich schon angegeben,jetzt will ich nur noch zu den einzelnen farben jeweils die hintergrundfarbe ändern lassen!

mfG Pansen!
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 07.12.05 17:59 
Gruss !
Hoffe Ich hab das richtig verstanden.

Schwarz
Weiss
Rot

ausblenden Delphi-Quelltext
1:
2:
3:
if Combobox1.ItemIndex=0 the Form1.Color:=clBlack;
if Combobox1.ItemIndex=1 the Form1.Color:=clWhite;
if Combobox1.ItemIndex=2 the Form1.Color:=clRed;
Pansen! Threadstarter
Hält's aus hier
Beiträge: 5

Windows XP
Delphi 7
BeitragVerfasst: Mi 07.12.05 18:05 
dankeschön,funktioniert,und so wars auch gemeint,seid echt ne TOP Community und anfängerfreundlich!