Thread View: net.micro.mac
3 messages
3 total messages
Started by david fry
Wed, 29 Oct 1986 15:53
Changing Fonts from the keyboard
Author: david fry
Date: Wed, 29 Oct 1986 15:53
Date: Wed, 29 Oct 1986 15:53
37 lines
2577 bytes
2577 bytes
Someone may have posted a solution to this problem before, but I've never seen it, so here goes... The mouse is great, but changing fonts with it all the time can be a pain, especially if you're doing mathematics or other technical typing. But how can you add command-key equivalents to the font menu in, say, Macwrite? If you realize that MacWrite changes fonts by looking at the name of the menuitem you select from the Font menu, then it's obvious. With ResEdit, open the 'MENU' resource of MacWrite that has Font as its title, number 6 I think. There is nothing there now. Add however menuitems you need and make the menuitem EXACTLY the name of the font as it appears in the Font menu normally. And add a command-key equivalent. Also, it's good to give it some attribute, like "bold", to distinquish it from the other font names. Then close MacWrite and save the changes. When you return to MacWrite the Font menu will have your boldfaced font names at the top with their equivalents, and then the normal font menu afterwards. And it works fine. You can still select fonts with the mouse. Note that if you are using an old ROM machine with system software before 3.X, you don't have scrolling menus so adding these font names may cause some other fonts to "drop off the bottom", so to speak. Mac Plus users have nothing to fear, though. This technique also works with MacDraw and should work with almost any application that has a Font menu. AND, it should work with desk accessories, depending on the logic used by the application to load the accessory. For instance, it does not work for MacWrite, but it does work with an application I wrote (that is the extent of my testing because command-key equivalents for desk accessories don't excite me). David Fry fry@huma1.harvard.EDU Department of Mathematics fry@harvma1.bitnet Harvard University fry%huma1@harvsc4.bitnet Cambridge, MA 02138 ...!harvard!huma1!fry
Re: Command Keys for Openning Desk Accs. (Was: Changing Fonts from the keyboard)
Author: David Phillip Oster;;;;JE52
Date: Thu, 30 Oct 1986 20:16
Date: Thu, 30 Oct 1986 20:16
13 lines
1666 bytes
1666 bytes
When you add your own mwnu items to the Apple menu to get command key
equivalents for desk accessories, watch out. According to apple's
guidlines, each desk accessory should have leading null character in its
name. Some amateur desk accessories ignore this requirement.
Getting a leading null character into a name in a menu from resEdit is
tough. The best way I know to do it is to use some ascii character with a
distinctive hex code ('@' = 0x40, for example.) as a place holder, then
open the menu as general, search for 0x40, and change it to 0x00.
Warning: you can make an application unusable by incautious poking around
with ResEdit. Work on copies and be careful. Good luck.
--- David Phillip Oster -- "The goal of Computer Science is to
Arpa: oster@lapis.berkeley.edu -- build something that will last at
Uucp: ucbvax!ucblapis!oster -- least until we've finished building it."
Re: Command Keys for Openning Desk Accs. (Was: Changing Fonts from the keyboard)
Author: Tim Smith
Date: Fri, 31 Oct 1986 20:42
Date: Fri, 31 Oct 1986 20:42
20 lines
1651 bytes
1651 bytes
In article <1559@jade.BERKELEY.EDU> oster@lapis.berkeley.edu.UUCP (David Phillip Oster) writes:
[ Apple says DA's should have a leading null in their name ]
> Some amateur desk accessories ignore this requirement.
> Getting a leading null character into a name in a menu from resEdit is
> tough.
The simplest way to get the null in is to use Font/DA Mover. It will put
in a null if the DA is missing it. I don't know if all versions do this,
but the latest one does.
Does anyone know why there is supposed to be a null there? IM says it
is to avoid conflicts with file names, but who cares if a DA and a file
have the same?
--
member, all HASA divisions POELOD ECBOMB
--------------
^-- Secret Satanic Message
Tim Smith USENET: sdcrdcf!ism780c!tim Compuserve: 72257,3706
Delphi or GEnie: mnementh
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads