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