This is a follow-up to a post from last October (https://www.tmssoftware.com/site/forum/forum_posts.asp?TID=8307&KW=&title=tadvmainmenu-strange-behaviour-with-vcl-styles).
The submenus are drawn with a misplaced shadow and/or the menu items are not drawn on the correct background location.
it?s been a while and I took some time to look at the problem again.
I found a workaround, that solves the painting problem for us and may give you a hint how to solve it in a more general way.
While stepping through the code I noticed that in several places a TriangleSize is added/subtracted to/from the size of a rectangle to paint. The value of TriangleSize (17) looked almost like the width of the gap in the menu.
So I just set TriangleSize to zero in the two places where it is initialized and afterwards the submenus are drawn without the strange gaps.
The patch is against AdvMenus.pas version 126.96.36.199