How to Right Justify Top-Level Menus in Visual BasicLast reviewed: February 18, 1996Article ID: Q86772 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Visual Basic programming system for Windows, version 1.0
SUMMARYIt is possible to right justify top-level menu items by including a CHR$(8) (backspace) as the first character of the caption for the left-most menu that you want to appear on the right side of the menu bar. This article does not apply to Windows 95.
MORE INFORMATIONMicrosoft publishes a book called "The Windows Interface: An Application Design Guide," which contains standards and guidelines for Windows 3.1. The following guidelines for right-justified Help menu items is taken from that book:
"Some applications currently place the Help menu at the extreme right of the menu bar. The current recommendation is that the Help menu immediately follow the next-to-last menu item, for three reasons: (1) to increase the accessibility of the help menu; (2) to decrease the likelihood of pressing the Maximize or Minimize buttons by mistake when trying to access Help; and (3) to make the space at the extreme right of the menu bar available in MDI applications for a Restore icon for maximized child windows." Source: "The Windows Interface: An Application Design Guide" by Microsoft Corporation 248 pages, plus two 3.5-inch disks ISBN: 1-55615-439-9 Publication Date: October 9, 1992 Step-by-Step Example
Special Trick for Design TimeThe technique given above can be done only at run time. However, here's a trick you can use to do the same thing at design time:
|
Additional reference words: 1.00 2.00 3.00 alignment right-aligned align
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |