home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15233 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.9 KB  |  44 lines

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