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