Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi SystemFont auslesen... (https://www.delphipraxis.net/36394-systemfont-auslesen.html)

TimonWorld 19. Dez 2004 14:43


SystemFont auslesen...
 
Hallo!

Weiß jemand, wie ich die Standard-Font von Windows auslese???

Delphi-Quellcode:
function GetSystemFont: TFont;
var SysFont: TFontM
begin
  with SysFont do begin
    create;
    size := 10;
    color := clWindowText;
    style := [];
    name := {?! System-Font !?} ;
  end;
  result := f
  SysFont.Free;
end;

Bernhard Geyer 19. Dez 2004 18:40

Re: SystemFont auslesen...
 
Schau dir mal die Win32API-Funktion SystemParametersInfo an.
Es gibt ja nicht nur den Font (z.B. für Buttons) sondern je nach Einsatz unterschiedliche.

TimonWorld 20. Dez 2004 19:08

Re: SystemFont auslesen...
 
menno die win-api ist englisch, aber werde trotzdem mal nachblättern.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz