Article View: borland.public.cppbuilder.nativeapi
Article #8446Re: EnumFonts and TStringList
From: Remy Lebeau (TeamB)
Date: Sun, 24 Oct 2004 01:13
Date: Sun, 24 Oct 2004 01:13
26 lines
1862 bytes
1862 bytes
"LarryJ" <LarryJ33@ev1.net> wrote in message news:417ac708$1@newsgroups.borland.com... > I am using EnumFonts seen below to get the list of available fonts > into a combobox. Can EnumFonts be used with a TStringList? Yes. Simply change your callback code to expect a TStrings* pointer instead of a TComboBox* pointer. Then you can use the same code for both situations. > The TStringList does not have a HDC hdc Handle It does not need one. > so the TStringList does not seem to work. Simply specify the HDC from another source. You are currently using the form's Canvas HDC. That is fine to continue using, since you are not using the TComboBox's HDC to begin with. Alternatively, look at the global TScreen::Fonts property. Then you don't have to call EnumFonts() yourself manually. Gambit
Technical Details
Message-ID:
<417b0186$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<417ac708$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b8af8b1ec2f90521 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <417ac708$1@newsgroups.borland.com> Subject: Re: EnumFonts and TStringList Date: Sat, 23 Oct 2004 18:13:10 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <417b0186$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098580358 68.69.17.41 (23 Oct 2004 18:12:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail