Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About Menu Option (Right Justified)

Status
Not open for further replies.

UncleT

Programmer
Sep 26, 2001
133
US
Hello,

I've created an application in VB 6.0 and on the main form I put some menu items. One of the menu items is "ABOUT". My question is, How do I get the About menu item to show up on the right side of the form and the other entries show up on the left. I set the Negotiate position to Right but it still doesn't work. Can anyone please help.

Thanks,

UncleT

 
I don't know if you even CAN do that anymore. You used to be able to put the Help menu of the right, but that's not common anymore. Most programs just have all menu items on the left. About is usually made a menu item on the Help menu.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
UncleT
You can do like I did. Put some empty menu items in between, just to keep a distance at least.

_______________________________________

Eman_2005
Technical Communicator
 
This technique is ancient. I remember doing it in my OS/2 days (sadly, I don't have my OS/2 books anymore). I think it was also used in Win16 programming.

Take a look at the MF_MENUBARBREAK value that gets passed to the AppendMenu() API method, I think that's what got used to put that horizontal space in there.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Ah, this used to be done through MF_HELP and/or MF_RIGHTJUSTIFY (both defined as &H4000), but it doesn't have much affect in current versions of Windows

VB3 had a key sequence you could use in the menu editor (in the same way that "-" gives you a menu seperator bar in VB6) to get the right align. I've forgotten what it was, though
 
Here's the definition from winuser.h
Code:
#define MF_HELP             0x00004000L
#if(WINVER >= 0x0400)
#define MF_RIGHTJUSTIFY     0x00004000L
#endif /* WINVER >= 0x0400 */
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top