home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!decwrl!csus.edu!netcom.com!whedon
- From: whedon@netcom.com (Bill Whedon)
- Subject: Re: Using extended character set in menus
- Message-ID: <wvbnt0_.whedon@netcom.com>
- Date: Wed, 26 Aug 92 16:30:34 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <55864@olivea.atc.olivetti.com> <kbbnz+=.whedon@netcom.com> <55877@olivea.atc.olivetti.com>
- Keywords: Windows 3.0
- Lines: 35
-
- In article <55877@olivea.atc.olivetti.com> os2dev@flash.ATC.Olivetti.Com (Bruce Rienzo) writes:
- >In article <kbbnz+=.whedon@netcom.com> whedon@netcom.com (Bill Whedon) writes:
- >>>I would like to display arrow symbols next to a menu item to indicate
- >>>that the arrow key is the accelerator for this item.
- >>>
- >>>How do I do it?
- >>See "Programming Windows" by Charles Petzold, Microsoft Press,
- >>ISBN 1-55615-264-7, the section titled "USING BITMAPS IN MENUS"
- >>Cheers,
- >>Bill Whedon
- >
- >Thanks for this Bill but I don't have quick access to this book. I have
- >looked at the section on using bitmaps in menus but it seems to me
- >that the entire menu item that is changed
- >with ModifyMebu has to be a bit map.
- >
- >What I want to do is have a text string followed by an arrow symbol.
- >Is there a slick way to write the string to the Menu item
- >in the normal way and then add the arrow symbol either by:
- >
- >a) changing to another font, appending the arrow, then changing back to
- > the system font.
- >
- >b) appending the bitmap of an arrow to the existing menu item.
- >
- >Thanks in advance.
-
- The nearest answer I can come up with is to create the bitmap on the fly
- using text for your item, and drawing the arrow with GDI, then transfer
- it to the menu ala Petzold. I suppose you could do a little outside
- applet to create these menu bitmaps with text. It would be sort of like
- building ownerdraw bitmap pushbuttons. I think you will find that using
- graphics characters can give you some weird effects in Windows. But, hey,
- nothing ventured...
- Bill Whedon
-