Autor Beitrag
Mr. Hunt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: So 02.12.07 11:34 
Ich habe einen TColorDialog
Und ein TRichEdit

Per Button1 Klick passiert folgendes:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TMainForm.Button1Click(Sender: TObject);
begin
ColorDialog.Execute;
end;


aber wie sage ich jetzt, das er die schriftfarbe, von dem im RichEdit stehenden Text ändert?

(mit SelAttributes irgentwie??)

MfG


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am So 02.12.2007 um 23:57
.#R4id
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

Windows XP Prof.
CodeGear Delphi 2007
BeitragVerfasst: So 02.12.07 12:39 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TMainForm.Button1Click(Sender: TObject);
begin
  if (ColorDialog.Execute) then RichEdit1.Font.Color := ColorDialog1.Color;
end;
Mr. Hunt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: So 02.12.07 13:17 
Funktioniert

Vielen Dank


MfG

Mr. Hunt