Moin

!
Ich hab extreme Probleme mit einer TFont-Property: sieht der Code so aus
Delphi-Quelltext
1: 2: 3: 4: 5:
| procedure TDSCalendar.SetFont(AValue: TFont); begin FFont := AValue; Repaint; end; |
bekomm ich eine AV; mach ichs so
Delphi-Quelltext
1: 2: 3: 4: 5:
| procedure TDSCalendar.SetFont(AValue: TFont); begin FFont.Assign(AValue); Repaint; end; |
klappt zwar eine direkte Zuweisung wie z.B.
Delphi-Quelltext
1:
| DSCalendar1.Font := MyFont; |
nicht aber Zuweisungen wie
Delphi-Quelltext
1:
| DSCalendar1.Font.Name := 'Verdana'; |
Das bleibt komplett ohne Erfolg. Was mach ich falsch?
AXMD