home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!hamblin.math.byu.edu!hellgate.utah.edu!peruvian.cs.utah.edu!mshields
- From: mshields%peruvian.cs.utah.edu@cs.utah.edu (Michael S Shields)
- Subject: Re: Modifying width of PopUp menus in System 7.1
- Date: 22 Jan 93 01:18:47 MST
- Message-ID: <1993Jan22.011847.21724@hellgate.utah.edu>
- Organization: University of Utah Computer Science
- References: <1jfqevINN244@flop.ENGR.ORST.EDU> <absurd-190193022736@seuss.apple.com>
- Lines: 40
-
- In article <absurd-190193022736@seuss.apple.com> absurd@apple.apple.com (Tim Dierks, software saboteur) writes:
- >
- >Here's some code to do what you want. I'm right in the middle of working
- >on this,
- >so I can't say it's 100% correct, but I'm pretty sure it's close. It will
- >give
- >you all the essential concepts, anyway.
- >
- >Tim Dierks
- >MacDTS, but I speak for myself
- >
-
- [some code deleted]
-
- > // First, we'll clean up after buggy software. A number of commercial
- >products
- > // (word processors are most common) screw up the window manager port;
- >they leave the
- > // txSize field set to 12. It and the txFont field should always be
- >left set to 0;
- > // this makes them the system font and size. So first thing we do is
- >clean up
- > // after these miscreants.
- >
- > GetWMgrPort(&wMgrPort);
- > SetPort(wMgrPort);
- > TextFont(0);
- > TextSize(0);
- >
- [more code deleted]
-
- This section I have a question about. I found out the other day that the system
- software for international use(ie. Kanji) doesn't use 0 as the system font.
- If I set the SysFontFam global to 0 the menu and titlebar text showed up in
- Chicago not Osaka(is this the correct name?). Now does TextFont and TextFace
- have the intelligence to use the correct font or does it blindly use Chicago?
- This was using Kanji 7.1 on a IIsi.
-
- Mike Shields
- mshields@peruvian.cs.utah.edu
-