Autor Beitrag
dr. rom4o
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Sa 12.03.05 14:47 
Hallo liebe Gemeinde,
ich bauer gerade den WindowsTaschenrechner nach.
Aber ich bekomme es nicht hin die Farbe der Schrift(Caption)
auf den Buttons zu ändern.
Ich hab es in TFont versucht, die Farbe auf blau oder rot
gestellt. Die Einstellung wird auch übernommen, aber an der
Farbe ändert sich nichts sie bleibt schwarz.

Wäre dankbar für ein paar Tips.

ciao

ps: arbeite mit Delphie 3

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 12.03.05 14:53 
Du brauchst ein weiteres Label mit der gleichen Caption wie beim Button.
Im OnCreate-Bereich kommt dann das rein:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  with Label1 do
  begin
    Parent := Button1;
    Alignment := taCenter;
    Layout := tlCenter;
    Align := alClient;
    Font.Color := clNavy;  // welche Farbe?
  end;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
mikeyboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Sa 12.03.05 14:57 
Oder du nimmst einfach einen BitmapButton(BitBtn), bei dem ist es möglich die Schriftfarbe zu ändern, ohne lästigen Quelltext!!


Sehr hilfreich bei vielen BUTTONS

:wink:
dr. rom4o Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Sa 12.03.05 15:28 
Titel: hey leute danke ich glaube jetzt komme ich weiter...ciao
dr. rom4o dankt...:-)

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert