From e0c03af66a5fd0a484c77ee25cea5e19bce2152d Mon Sep 17 00:00:00 2001 From: Yakir Luc Gagnon <12.yakir@gmail.com> Date: Thu, 6 Apr 2017 14:07:39 +0200 Subject: [PATCH] Update README.md Fixes #301 I still need to update the figure in doc/figures/menu.png to correspond to these changes. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2a7a6a5..d600cf56 100644 --- a/README.md +++ b/README.md @@ -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)