Page 1 of 1

SOLVED: How to make a menu horizontal instead of vertical

Posted: 29 Sep 2014, 13:00
by Wade Hatler
I'd like to make a topline menu like you'd see in Notepad in an AHK Gui. It's easy to create the menu with something like this:

Code: Select all

Menu, DocsMenu, Add, Doctype 1, DocsMenu
Menu, DocsMenu, Add, Doctype 2, DocsMenu

Menu, MainMenu, Add, &Help , Menu_Help
Menu, MainMenu, Add, &Documents, :DocsMenu
Menu, MainMenu, Add, E&xit, DoExit
but that gives you a typical context menu, with the items aligned vertically. Is there a secret sauce to make the menu appear horizontally? I vaguely thought I saw something like that in the forum, but haven't been able to find it.

Thanks

Re: Hot to make a menu horizontal instead of vertical

Posted: 29 Sep 2014, 14:53
by trismarck
This may be totally unrelated, but anyway. The only 'vertical' thing that I saw so far was the tab control with vertical tabs.

//edit: I've read: vertically, not horizontally, sorry about that.

Re: Hot to make a menu horizontal instead of vertical

Posted: 29 Sep 2014, 14:58
by MilesAhead
I think what you mean may be shown in the help. Go to Menu Bar in the help index.

Re: Hot to make a menu horizontal instead of vertical

Posted: 29 Sep 2014, 15:05
by Wade Hatler
DOH!! You're exactly right. Thanks.

I had tried that, but I made the mistake of not setting the width on the test window, so it was just vertical because it was wrapping. Setting window width fixed it ;)