SOLVED: How to make a menu horizontal instead of vertical

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Wade Hatler
Posts: 60
Joined: 03 Oct 2013, 19:49
Location: Seattle Area
Contact:

SOLVED: How to make a menu horizontal instead of vertical

29 Sep 2014, 13:00

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
Last edited by Wade Hatler on 29 Sep 2014, 15:12, edited 1 time in total.
User avatar
trismarck
Posts: 506
Joined: 30 Sep 2013, 01:48
Location: Poland

Re: Hot to make a menu horizontal instead of vertical

29 Sep 2014, 14:53

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.
Last edited by trismarck on 29 Sep 2014, 15:05, edited 1 time in total.
User avatar
MilesAhead
Posts: 232
Joined: 03 Oct 2013, 09:44

Re: Hot to make a menu horizontal instead of vertical

29 Sep 2014, 14:58

I think what you mean may be shown in the help. Go to Menu Bar in the help index.
"My plan is to ghostwrite my biography. Then hire another writer to put his
name on it and take the blame."

- MilesAhead
Wade Hatler
Posts: 60
Joined: 03 Oct 2013, 19:49
Location: Seattle Area
Contact:

Re: Hot to make a menu horizontal instead of vertical

29 Sep 2014, 15:05

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 ;)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: NinjoOnline and 304 guests