tmenu is tview based library that provides a main menu bar widget
To use tmenu follow these steps per cmd/main.go for example
- Create the MenuItems that will be your menu bars main items
- For each main item add sub MenuItems
- Create the MenuBar
- Add each main item to the menu bar in the desired order
- Add the menu bar to the desired container, such as a flex - don't allow its size to be recomputed
- Install the MenuBars AfterDraw() function as part of your AfterDraw routine, or as the main one to the application
- Run the application