Skip to content

Commit

Permalink
Update menus_and_toolbars.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed May 22, 2024
1 parent 444eaaa commit 3ebbc63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/documentation/eBook/menus_and_toolbars.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ menu_item file_menu_item {"&File", {file_exit_menu_item}};
```
We create the submenu item in the file with the menu item text as the first parameter.
The second parameter is a vector of menu items. In this case, it contains only the exit menu item.
The second parameter is a vector of menu items. In this case, it contains only the `exit` menu item.
```cpp
main_menu main_menu1 {file_menu_item};
```

Finally, we create the main menu, which will be placed in the form's menu bar.
It contains the list of submenus, in this case the file submenu.
It contains the list of submenus, in this case the `file` submenu.

![Screenshot](/pictures/examples/tutorial/simple_menu.png)

Expand Down

0 comments on commit 3ebbc63

Please sign in to comment.