From 4cb236fe46cc799196e5215e30ecfba50ab340bd Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 10 Feb 2015 12:37:52 +0000 Subject: [PATCH] ShowTestWindow() demonstrate tree nodes within columns. --- imgui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index a7822ae1..2cf3ec47 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8343,7 +8343,13 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::Columns(1); ImGui::Separator(); - + + ImGui::Columns(2, "tree items"); + if (ImGui::TreeNode("Hello")) { ImGui::BulletText("World"); ImGui::TreePop(); } ImGui::NextColumn(); + if (ImGui::TreeNode("Bonjour")) { ImGui::BulletText("Monde"); ImGui::TreePop(); } + ImGui::Columns(1); + ImGui::Separator(); + ImGui::Columns(2, "word wrapping"); ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); ImGui::Text("Hello Left");