Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Di 30.05.06 15:53 
Hi,
wäre jemand so nett mir zu erklären warum hier die Schrift nicht geändert wird:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.CompoBox1Change(Sender: TObject);
begin
case CompoBox1.ItemIndex of
 1: RichEdit1.SelAttributes := [Arial];
end;
end;

Es funktioniert auch nicht in einem Button:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
RichEdit1.SelAttributes := [Arial];
end;

Leuchtturm

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
DelphiAnfänger
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 112

Win XP, Firefox 2.0, IE6
Delphi 5 Prof., Delphi 2005 PE
BeitragVerfasst: Di 30.05.06 15:58 
user profile iconLeuchtturm hat folgendes geschrieben:
Hi,
wäre jemand so nett mir zu erklären warum hier die Schrift nicht geändert wird:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.CompoBox1Change(Sender: TObject);
begin
case CompoBox1.ItemIndex of
 1: RichEdit1.Font.name := 'Arial';
end;
end;

Es funktioniert auch nicht in einem Button:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
 RichEdit1.Font.name := 'Arial';
end;

Leuchtturm
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 30.05.06 16:00 
Ich empfehle dir einfach mal den begriff, den du nicht verstehst oder dessen parameter du nicht kennst, zu makieren und F1 zu drücken. In der Delphihilfe steht meist einiges dazu erklärt ;)
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Di 30.05.06 16:03 
Danke, so funktionierts

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Di 30.05.06 16:09 
:?: :?: Wie kann man das bloß auf einen markierten Bereich anwenden :?: :?:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
DelphiAnfänger
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 112

Win XP, Firefox 2.0, IE6
Delphi 5 Prof., Delphi 2005 PE
BeitragVerfasst: Di 30.05.06 16:12 
user profile iconLeuchtturm hat folgendes geschrieben:
:?: :?: Wie kann man das bloß auf einen markierten Bereich anwenden :?: :?:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.CompoBox1Change(Sender: TObject);
begin
case CompoBox1.ItemIndex of
 1: RichEdit1.SelAttributes.Name := 'Arial';
end;
end;
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Di 30.05.06 16:25 
danke

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.