Autor Beitrag
frank-wob
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 05.06.07 16:57 
Hallo,

der Titel sagt es ja schon. Gibt es eine Möglichkeit den Items in einer Radiogroup unterschiedliche Farben zu geben? :?:


Gruß Frank
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 05.06.07 17:31 
Die TRadioGrou hat ein Property Buttons, mit dem man auf die einzelnen TRadioButtons zugreifen kann:

ausblenden Delphi-Quelltext
1:
  RadioGroup1.Buttons[0].Font.Color := clRed;					


Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.
frank-wob
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 05.06.07 17:53 
Hallo,

so hatte ich das schon versucht, aber leider funktioniert das nicht. :(

Ich kann so zwar eine Farbe zuweisen, aber die Radiogroup übernimmt sie nicht. Die Items bleiben Schwarz.

Gruß Frank
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 05.06.07 17:56 
Ich habe es gerade selbst ausprobiert und die obige Zeile im FormCreate eingefügt - funktioniert.

Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.
frank-wob
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 05.06.07 18:09 
Komisch, bei mir gibt es keine Reaktion. Ich habs in OnCreate, OnShow und sogar mit einem extra Button probiert. Es passiert absolut nichts.

Jetzt habe ich es auch noch mal mit einem neuen leeren Projekt probiert, aber auch da funktioniert es nicht.:(

Könnte das evtl. an Delphi2007 liegen?

Frank
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 05.06.07 19:41 
Hallo,

versuch es mal so:
ausblenden Delphi-Quelltext
1:
TRadioButton(RadioGroup1.Controls[0]).Font.Color := clRed;					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 05.06.07 20:00 
Merkwürdig. Ihc habe es jetzt zu Hause noch mal mit Turbo Delphi .NET ausprobiert - auf der Arbeit habe ich Delphi 7 - und mit dem funktioniert es auch.

Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.