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