Autor Beitrag
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Do 27.06.02 14:48 
Hi Leute,

ich habe ein Problem. Ich habe eine ComboBox (ComboBox1) und ein Label (Label1). In der ComboBox stehen alle auf dem Computer installierten Schriftarten(da brauche ich keine Hilfe,hab ich schon). Nun möchte ich, dass sich die Schriftart des Label ändert. Hat jemand ein Code-Example:?:
Vielen Dank im vorraus
Majolo
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 27.06.02 15:00 
Hi,

wann soll sich die Schrifart ändern? Wenn der User in der Combobox eine Schriftart auswählt? Wenn ja:
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
  Label1.Font.Name := ComboBox1.Items [ComboBox1.itemIndex];
end;


Gruß
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Do 27.06.02 15:01 
Label1.Font.Name := ComboBox1.Text;
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 27.06.02 15:05 
1 Minute zu spät :-D
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Do 27.06.02 15:33 
Titel: Danke
Danke! Ich bin blöd. So ähnlich hatte ich den Code auch!
Majolo