home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1506 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.0 KB  |  47 lines

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