Autor Beitrag
CodexX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Mo 25.07.05 02:31 
hi!

wie kann ich denn die schriftart ändern, die in dem programm verwendet wird?
also nicht für jedes element einzeln, sondern "global"?

danke :)
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mo 25.07.05 02:42 
wenn du den font deines forms oder panels änderst, ändern sich normal auch die font's aller "kinder" [url=www.planet-smilies.de/]user defined image[/url]

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mo 25.07.05 03:02 
Das hat er jetzt nicht verstanden - oder. retnyg spricht von der Eigenschaft  ParentFont

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mo 25.07.05 06:54 
user profile iconHarry M. hat folgendes geschrieben:
Das hat er jetzt nicht verstanden


Wieso? retnyg hat doch vollkommen recht. Einfach Form auswählen und dann im Objekt Inspektor den Font einfach umstellen!

_________________
Aus dem Urlaub zurück!
CodexX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Mo 25.07.05 14:41 
ok, das geht tatsächlich so. danke, hab ich jetzt genau so gemacht. musste ich aber auf allen forms ändern.

das habe ich noch gefunden:
Zitat:
To make TFont use a different font like "Tahoma" add this to the first line in the project:

Graphics.DefFontData.Name := 'Tahoma';

You might have to include "Graphics" in the file's uses clauses. Furthermore, adding this line of code to the project will cause the changed setting to only be applied at runtime, not at design time. To make a designtime change, you'd have to add this line to the initialization section of a unit in a design package.

Regarding the IDE, I use GExperts to change the font of the Object Inspector. The Wide String List editor uses the font used by the object inspector.

Also keep in mind that the font used by certain message boxes come from that set by Windows' Display properties.

aber das mit der zeile einfügen hat nicht geklappt ... oder ich hab einfach die falsche stelle genommen :P