From 62a3142036a62daaebe4df7bf850fb805571f781 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 29 Aug 2015 13:31:30 +0100 Subject: [PATCH] Demo: comments. --- imgui_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index a79e9c4a..48be4a7a 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -827,7 +827,7 @@ void ImGui::ShowTestWindow(bool* opened) if (ImGui::TreeNode("Groups")) { - ImGui::TextWrapped("(Using ImGui::BeginGroup()/EndGroup() to layout items)"); + ImGui::TextWrapped("(Using ImGui::BeginGroup()/EndGroup() to layout items. BeginGroup() basically locks the horizontal position. EndGroup() bundled the whole group so that you can use functions such as IsItemHovered() on it.)"); ImGui::BeginGroup(); { ImGui::BeginGroup(); @@ -903,7 +903,7 @@ void ImGui::ShowTestWindow(bool* opened) if (ImGui::TreeNode("Scrolling")) { - ImGui::TextWrapped("Use SetScrollHere() or SetScrollFromPosY() to scroll to a given position."); + ImGui::TextWrapped("(Use SetScrollHere() or SetScrollFromPosY() to scroll to a given position.)"); static bool track = true; static int track_line = 50, scroll_to_px = 200; ImGui::Checkbox("Track", &track);