Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,14 @@ Now let's populate it with entries:
quit = @MenuItem("Quit")
push!(filemenu, quit)
```
Finally, let's place our file item inside another type of menu, the `MenuBar`:
Finally, let's place our file item inside another type of menu, the `MenuBar`, and push that into a vertical `Box`. This way, we can include more widgets in our window:
```jl
mb = @MenuBar()
push!(mb, file) # notice this is the "File" item, not filemenu
win = @Window(mb, "Menus", 200, 40)
b = @Box(:v)
l = @Label("A label")
push!(b, mb, l)
win = @Window(b, "Menus with a label", 200, 40)
showall(mb)
```
![menu](doc/figures/menu.png)
Expand Down