home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20798 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.5 KB  |  36 lines

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!destroyer!cs.ubc.ca!bcsystems!cconstantine
  2. From: cconstantine@galaxy.gov.bc.ca
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: different font in a listbox?
  5. Message-ID: <1993Jan6.072528.1459@galaxy.gov.bc.ca>
  6. Date: 6 Jan 93 07:25:28 -0800
  7. References: <C0E41B.1GC.2@cs.cmu.edu> <1993Jan5.200308.14400@kth.se>
  8. Organization: BC Systems Corporation
  9. Lines: 25
  10.  
  11. In article <1993Jan5.200308.14400@kth.se>, d88-jwa@dront.nada.kth.se (Jon WΣtte) writes:
  12. > In <C0E41B.1GC.2@cs.cmu.edu> soetji+@G.GP.CS.CMU.EDU (Soetjianto) writes:
  13. >>Is it possible to change the font and its alignment of a listbox?
  14. > Well, on the Mac they're called List Manager Lists, not
  15. > ListBoxes, but Yes. All you have to do is to write your
  16. > own LDEF; that's a very simple task.
  17. > The resource ID of the LDEF should be passed to LNew.
  18.  
  19. Actually, you don't even need to write your own LDEF.  I made a Help Module in
  20. Pascal for an accounting program I was working on.  I used STR# resources for
  21. the list of topics and TEXT/styl resources for the actual help text.  If you do
  22. a TextFont(Geneva), TextSize(9), TextStyle(Plain), your list will use Geneva
  23. 9pt Plain in the list.  You must call these routines BEFORE putting up your
  24. list though, or it won't work.
  25.  
  26. BTW, I wrote 1 routine that would hand all three calls.  Something like
  27. SetText(str255,integer,str255) or something like that.  You get the idea.
  28.  
  29.  
  30. Carl B. Constantine
  31. CCONSTANTINE@galaxy.gov.bc.ca
  32.