home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!howland.reston.ans.net!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!news.yale.edu!YaleVM.YCC.Yale.Edu!GREMICF
- From: GREMICF@YaleVM.YCC.Yale.Edu (M. David Greenspon)
- Subject: Re: Geneva 9 Radio Buttons, Checkboxes, etc...
- Message-ID: <16B64AECE.GREMICF@YaleVM.YCC.Yale.Edu>
- Sender: news@news.yale.edu (USENET News System)
- Nntp-Posting-Host: yalevm.ycc.yale.edu
- Organization: Yale University
- References: <01050133.oc46s3@distant.uucp> <21769@ucdavis.ucdavis.edu> <1993Jan25.212654.11084@aio.jsc.nasa.gov>
- Date: Thu, 28 Jan 93 12:25:34 EST
- Lines: 17
-
- In article <1993Jan25.212654.11084@aio.jsc.nasa.gov>
- mark@pokey.jsc.nasa.gov (Mark Manning) writes:
-
- > I have my own problem with dialogs and font setting. I have a
- >Static Text Field I want to change from one font to another as well
- >as change the size and face values. From ftp.apple.com I downloaded
-
- Why not just define it as a UserItem instead? In your UserItem proc, just
- save the current font and size, call TextFont and TextSize with whatever font
- and size you need (stored in global variables), draw your text, and restore
- the old font/size.
-
- In your dialog procedure (or function--sorry, I use Pascal) you can set those
- font/size globals whenever you want and then call InvalRect on your UserItem's
- rect. It's pretty simple (if I understood your request right).
-
- --David
-