瀏覽代碼

Demo: comments.

ocornut 10 年之前
父節點
當前提交
62a3142036
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      imgui_demo.cpp

+ 2 - 2
imgui_demo.cpp

@@ -827,7 +827,7 @@ void ImGui::ShowTestWindow(bool* opened)
 
 
         if (ImGui::TreeNode("Groups"))
         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();
             {
             {
                 ImGui::BeginGroup();
                 ImGui::BeginGroup();
@@ -903,7 +903,7 @@ void ImGui::ShowTestWindow(bool* opened)
 
 
         if (ImGui::TreeNode("Scrolling"))
         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 bool track = true;
             static int track_line = 50, scroll_to_px = 200;
             static int track_line = 50, scroll_to_px = 200;
             ImGui::Checkbox("Track", &track);
             ImGui::Checkbox("Track", &track);