Path: utzoo!attcan!uunet!ndsuvax!nopuklic From: nopuklic@ndsuvax.UUCP (Blayne Puklich) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC & hierarchical menus Message-ID: <1091@ndsuvax.UUCP> Date: 5 Aug 88 16:50:45 GMT References: <730052@hpcilzb.HP.COM> <730055@hpcilzb.HP.COM> Reply-To: nopuklic@ndsuvax.UUCP (Blayne Puklich) Organization: North Dakota State University Fargo, ND Lines: 56 [] In article <730055@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes: > >>Does anyone know how to enter the wierd hex value 0x1B in the >>"mark char" field of a MENU resource in ResEdit? > >I just realized that 0x1B is , so now I am even more puzzled. >How do you type into ResEdit? > >Any clues (expecially examples!) are very much appreciated! > >-Ted You may want to re-read IM V-236. Don't put the $1B in the mark char field, put it in the keyboard equivalent field. The resource ID of the hMenu goes in the mark char field. It's very easy to type in an escape. Just type one, and the "missing symbol" will be displayed. However, I can see you would have a slight problem if you didn't have an ADB keyboard (such as one from a Mac other than an SE or II). I've thought about this before when I started working with hMenus, and I think I might have a solution for you if you're using a non-ADB keyboard. This may be a really hard way to do it, but it's all I can think of. What you could do is go into ResEdit itself and alter the editing template for the resource type MENU. This is very easy to do, and I'll explain it as best I can. The first thing to do is BACK UP RESEDIT so you have a copy you can work with. Open up one of your copies of ResEdit, and open up the copy of ResEdit you wish to use for this. You can run and open the same copy of ResEdit. Next, open up the templates (type TMPL). Find the MENU template and open it up. What you'll be staring at is the editing template for MENUs. Go down to the "key equiv" title, and change its type from CHAR to HBYT. HBYT stands for Hex BYTe (pretty obvious). This will allow you to type in $1B for your escape character. While you're at it and still have the MENU template open, you might want to change the "mark char" from CHAR to DBYT so that you can put your hierarchical menu's resource ID into that spot as you build the parent menu's resource. DBYT stands for Decimal BYTe. Now you can save and close your copy of ResEdit that you changed. The next time you use ResEdit and open up a resource of type MENU, the two pieces-parts you changed in the editing template will be displayed as a hex byte and a decimal number, respectively. This might make life easier when you're working with hMenus. I hope this will help you. I welcome an easier or better way to do this, since I have a tendency to develop solutions to my problems that are the hardest way to do things. But that's what I get for being a programmer... ||+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|| || Blayne Puklich nopuklic@plains.NoDak.edu || || NDSU Student ACM use this-> NU087763@NDSUVM1.bitnet || || Chairperson North Dakota State University, Fargo, ND || || || || "Everyone should have a Corvette, I think." || ||-------------------------------------------------------------------------||