FormDesigner: Menu-bar: separator after submenu moved into submenu

Post bugs related to the IDE here
NJOY45
New User
New User
Posts: 2
Joined: Wed Aug 17, 2022 12:58 pm

FormDesigner: Menu-bar: separator after submenu moved into submenu

Post by NJOY45 »

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