AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tidying up the menu

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Leon



Joined: 27 Aug 2007
Posts: 179

PostPosted: Sat Oct 06, 2007 12:46 am    Post subject: Tidying up the menu Reply with quote

Hi all, Im trying to have entries in the menu which have text on both left and right sides of the menu. Like this:
Menu Item......................Shortcut
A longer menu item........Shortcut

But I cant get them to line up at all unless i use dots in between as in above example.

Is there any way to line them up without having characters between them?
Back to top
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 1017

PostPosted: Sat Oct 06, 2007 12:50 am    Post subject: Reply with quote

Use %A_Tab%, eg:

menu, tray, add, test1%a_tab%Ctrl+O, test
menu, tray, add, test2%a_tab%Ctrl+W, test
Back to top
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Sat Oct 06, 2007 1:22 am    Post subject: Reply with quote

you can also use `t instead. Note that `t will right align the text, but you can't use two `t, IIRC.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group