Autor Beitrag
AlexBegin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mo 11.05.09 11:58 
Ich möchte den aktuellen Font eines Memos an den FontDialog übergeben. Habe folgendes ohne Erfolg probiert.

ausblenden Quelltext
1:
FontDialog.Font.Assign(Form2.Memo1.Font);					


ausblenden Quelltext
1:
FontDialog1.Font := Form2.Memo1.Font;					


ausblenden Quelltext
1:
FontDialog1.Font.Name := Form2.Memo1.Font.Name;					


Irgendwo mache ich ein Fehler. Der aktuelle Zeichensatz wird einfach nicht in den FontDialog übernommen.
Andreas Schilling
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 1

WIN XP, WIN 7
Delphi 5 Ent, Delphi 2007 Pro, XE4
BeitragVerfasst: Mo 11.05.09 12:25 
Bei mir funktioniert es so:
ausblenden Delphi-Quelltext
1:
2:
  fontdialog1.font :=  memo1.font;
  FontDialog1.Execute;


Gibt es irgendwelche Fehlermeldungen?
AlexBegin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mo 11.05.09 12:37 
Ich hab mir nochmals neue Forms erstellt. Dann funktioniert es auch bei wieder. Muss mal sehen wie ich es im Original-Form bewerkstellige. Hab mir vielleicht irgendwas verstellt an den Einstellungen???

Bis dann Alex