Menu-Bar: When using a submenu and placing a separator directly after this, it will be moved to the last position of the submenu. The code "MenuBar()" is placed to the wrong position within the CreateMenu-procedure:
procedure example of a wrong coded menu-bar:
OpenSubMenu("Item1")
MenuItem(#SubItem1, "SubItem1")
MenuItem(#SubItem2, "SubItem2")
MenuBar()
CloseSubMenu()
MenuItem(#ItemB, "ItemB")
The right place of "MenuBar" would be after "CloseSubMenu()"
The Menu-bar will be changed:
Original:
- Item1
- - SubItem1
- - SubItem2
- Separator
- ItemB
Result:
- Item1
- - SubItem1
- - SubItem2
- - Separator
- ItemB