Page 1 of 1

Menu +Break/+BarBreak observation

Posted: 12 Mar 2020, 08:56
by JBensimon
This is likely not a bug given that AHK menus are system-drawn, but I thought I'd mention it in case it's fixable: when +Break or +BarBreak is used to break up a menu into multiple columns, item names and their corresponding icons are "scrunched" together much closer than they would be otherwise. Compare the following two pop-up menus, one with and one without a column break.

JB

Re: Menu +Break/+BarBreak observation

Posted: 02 Jul 2022, 12:30
by K201902
Hi!
Probably won't give you exactly the answer you are looking for, but when I experimented and did this:

Code: Select all

Menu, Apps, Icon, &Calibre, C:\Program Files\Calibre\calibre.exe, 1, 0
instead of this

Code: Select all

Menu, Apps, Icon, &Calibre, C:\Program Files\Calibre\calibre.exe, 1
I've got a big 32x32 icon and a thick, wide menu line. Probably not what you are after since you have way too many items in the menu for this to be comfortable, but...

(more info here: https://www.autohotkey.com/docs/commands/Menu.htm#MenuIcon)

EDIT:
BTW since you can set the size of the icon you require instead of the zero that I've used, maybe you could have 24x24 icon, use it and have a decent menu line height even in mutiple-column menus.

:)
k

Re: Menu +Break/+BarBreak observation

Posted: 03 Jul 2022, 03:19
by lexikos
Win32 menus are usually rendered by uxtheme.dll, but not if they use +Break or +BarBreak.

If you use an owner-draw menu, you can control the sizing.