home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15307 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!qmw-dcs!jeremyr
  2. From: jeremyr@dcs.qmw.ac.uk (Jeremy Roussak)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: popup menus in non-system font
  5. Message-ID: <1992Sep10.214027.7936@dcs.qmw.ac.uk>
  6. Date: 10 Sep 92 21:40:27 GMT
  7. Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
  8. Organization: Computer Science Dept, QMW, University of London
  9. Lines: 27
  10. Nntp-Posting-Host: sequent.dcs.qmw.ac.uk
  11.  
  12. Well, the last time I asked about this everyone was very
  13. helpful, so here goes again.
  14.  
  15. I want a popup menu to appear in a non-system font and size.
  16. There's something about this in the Q&A stack, so I followed
  17. Apple's advice. My code looks like this:
  18.  
  19. SysFontFam = (*v.options)->menuFont;
  20. SysFontSize = (*v.options)->menuSize;
  21. LastSPExtra = CurFMInput = -1;
  22.  
  23. then PopUpMenuSelect, then reset SysFontFam and SysFontSize and
  24. invalidate the other two globals again.
  25.  
  26. Now, this works a treat. Until, that is, I run an app like
  27. MSWord (are there any?) or even, I am told, MacWrite IIJ. Then
  28. (and sometimes for no apparent reason), although the font
  29. changes for the popup, the size doesn't: it stays at 12 point.
  30. Checking with MacsBug, SysFontSize is set to 9.
  31.  
  32. The problem persists after running MSWord, even after quitting
  33. it. Sometimes it will then go away again, but more often it
  34. persists until I reboot.
  35.  
  36. All help gratefully acknowledged... please?
  37.  
  38. Jeremy
  39.