Link to home
Start Free TrialLog in
Avatar of polygon
polygon

asked on

Right-Justify Menu

How can I right-justify a menu in VB 5?
Avatar of MorFF
MorFF

polygon,

Try putting a tab Chr$(9) in front of the text you want to justify.  It works for the top level drop down menu's. (like putting the help menu on the right)
I don't want to lock up you question as I've not tried it.  If it works, let me know and I'll submit it as an answer1

Cheers - MorFF
MorFF:
You should have submitted this as an answer.  It indeed works.  Although there is some space still on the right (which is reserved for the shortcut keys.)
ClifABB,

Thanks for your fairness!

Cheers - MorFF
Avatar of polygon

ASKER

My menu is a toplevel, dropdown menu (created with VB built-in menu editor).

I've tried this code but still nothing happens.

Private Sub Form_Load()
   mnuHelp.Caption = Chr$(9) & "Help"
End Sub

polygon,

sorry, sent you down the wrong path there.  Try this;

   Form1.help.caption = chr$(8) + form1.help.caption

Should work! - MorFF   ;-)
Avatar of polygon

ASKER

I'm SorRy, but I still can't make it work.
Can you send me a project which has a right-justified menu to billy_man@hotmail.com ?

polygon, If you still need help whould you clue me in as to what you mean by right- justified. I tried the code offered and it worked for me.
VB 5 supports something called bidirectional features that is if you are using a bidirectional Windows with bidirectional languge like arabic or hebrew to write from right to left all you have to do is to enable the RightToLeft prperty (Form1.RightToLeft = True)

now when you use any control over this form it will be supporting right to left, even the menues will be displayed from right to left.
this is how i understood your problem , i hope this will help you.
regards.
Avatar of polygon

ASKER

SorRy,
I don't think English is a bidirectional language.
The only thing I want is my Help menu to go to the right (below the minimize, maximize, close buttons).
ASKER CERTIFIED SOLUTION
Avatar of Darlof
Darlof

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial