home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19990 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!qmw-dcs!jeremyr
  2. From: jeremyr@dcs.qmw.ac.uk (Jeremy Roussak;Guest of Distributed Systems Lab)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Menus with another font than Chcago
  5. Message-ID: <1992Dec17.223202.13243@dcs.qmw.ac.uk>
  6. Date: 17 Dec 92 22:32:02 GMT
  7. References: <5848@krafla.rhi.hi.is>
  8. Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
  9. Organization: Computer Science Dept, QMW, University of London
  10. Lines: 21
  11. Nntp-Posting-Host: redstar.dcs.qmw.ac.uk
  12.  
  13. In <5848@krafla.rhi.hi.is> rson@rhi.hi.is (Mimir Reynisson) writes:
  14.  
  15. >How can I let the standard MDEF display it's contents with something
  16. >other than Chicago? Geneva 9 to be precise? Is it sufficent
  17. >just to change the system font global variable? and then change it
  18. >back after PopupSelect?
  19.  
  20. You have to set the font and size you want into the low-memory
  21. globals SysFontFam and SysFontSize. Then set LastSPExtra and
  22. CurFMInput to -1. Finally, save the txSize field of the
  23. WMgrPort (and, if you have colour QD, the WMgrCPort) and set it
  24. (them) to zero.
  25.  
  26. Then PopUpMenuSelect.
  27.  
  28. Then restore the txSize fields, restore SysFontFam and
  29. SysFontSize and set LastSPExtra and CurFMInput to -1.
  30.  
  31. Bingo!
  32.  
  33. Jeremy
  34.