home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22367 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: GREMICF@YaleVM.YCC.Yale.Edu (M. David Greenspon)
  4. Subject: Re: Geneva 9 Radio Buttons, Checkboxes, etc...
  5. Message-ID: <16B64AECE.GREMICF@YaleVM.YCC.Yale.Edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: yalevm.ycc.yale.edu
  8. Organization: Yale University
  9. References: <01050133.oc46s3@distant.uucp> <21769@ucdavis.ucdavis.edu> <1993Jan25.212654.11084@aio.jsc.nasa.gov>
  10. Date: Thu, 28 Jan 93 12:25:34 EST
  11. Lines: 17
  12.  
  13. In article <1993Jan25.212654.11084@aio.jsc.nasa.gov>
  14. mark@pokey.jsc.nasa.gov (Mark Manning) writes:
  15.  
  16. >   I have my own problem with dialogs and font setting.  I have a
  17. >Static Text Field I want to change from one font to another as well
  18. >as change the size and face values.  From ftp.apple.com I downloaded
  19.  
  20. Why not just define it as a UserItem instead?  In your UserItem proc, just
  21. save the current font and size, call TextFont and TextSize with whatever font
  22. and size you need (stored in global variables), draw your text, and restore
  23. the old font/size.
  24.  
  25. In your dialog procedure (or function--sorry, I use Pascal) you can set those
  26. font/size globals whenever you want and then call InvalRect on your UserItem's
  27. rect.  It's pretty simple (if I understood your request right).
  28.  
  29. --David
  30.