home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!sun-barr!decwrl!csus.edu!netcom.com!leonardr
- From: leonardr@netcom.com (Leonard Rosenthol)
- Subject: Re: UseResFile() problems with CTB Tools
- Message-ID: <fvsnz9_.leonardr@netcom.com>
- Date: Wed, 09 Sep 92 17:12:53 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <ULFIS.92Sep8211619@cyklop.nada.kth.se> <1992Sep9.080708.6006@tdb.uu.se>
- Distribution: comp
- Lines: 32
-
- In article <1992Sep9.080708.6006@tdb.uu.se> Mats.Bredell@udac.uu.se writes:
- >ulfis@cyklop.nada.kth.se (Anders Ulfheden) writes:
- >:
- >: The tool itself contains font information to be used in the tools settings
- >: dialog. I should read this information from the tool to make my custom choose
- >: dialog look good.
- >:
- >
- >Most tools contain a 'finf' resource that tells what font, size and style to
- >use for the settings dialog. I tried to use this resource, but found that
- >some tools don't have it.
- >
- That's true. Also, with System 7 there is a NEW resource type that is
- used by the xxChoose routines to track font/size information for a tool - the
- 'flst' resource. So what you now have to do is check system version - if
- 7 then look first for a 'flst' (Get1IndResource) and if you don't find it, then
- go for the 'finf'. Under 6, just get the 'finf'.
-
- >What am I supposed to do if there isn't such a resource? The tool I found that
- >was lacking this resource, apparently wanted Geneva 9. Should I set the font
- >to Geneva 9 if I can't find this resource?
- >
- If you don't find a 'finf' or 'flst' resource, then you should use
- either Geneva 9, or be internally cool and use the Script manager to load the
- the current application font & size.
-
- --
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
-
-