Skip to content

Commit

Permalink
Fix ListBoxHeader usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnimuc committed Jan 4, 2020
1 parent d890ad0 commit 4c078ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/todomvc/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function todo_list_ui(store)
buffer_len = 128

CImGui.PushItemWidth(-1)
CImGui.ListBoxHeader("List", -2)
if CImGui.ListBoxHeader("List", -2)
for i = 1:length(todos)
id = todos[i].id
status = todos[i].completed
Expand Down Expand Up @@ -63,14 +63,15 @@ function todo_list_ui(store)
CImGui.PopStyleColor(3)
CImGui.PopID()
end
CImGui.ListBoxFooter()
CImGui.ListBoxFooter()
end
CImGui.PopItemWidth()
end

function todo_mvc_ui(store)
# flag = 0
flag = CImGui.ImGuiWindowFlags_NoTitleBar |
CImGui.ImGuiWindowFlags_NoResize |
CImGui.ImGuiWindowFlags_AlwaysAutoResize |
CImGui.ImGuiWindowFlags_NoSavedSettings |
CImGui.ImGuiWindowFlags_NoFocusOnAppearing |
CImGui.ImGuiWindowFlags_NoNav
Expand Down

0 comments on commit 4c078ae

Please sign in to comment.