|
|
@ -6664,7 +6664,8 @@ struct ExampleAppConsole |
|
|
|
|
|
|
|
|
|
|
|
// Reserve enough left-over height for 1 separator + 1 input text
|
|
|
|
// Reserve enough left-over height for 1 separator + 1 input text
|
|
|
|
const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); |
|
|
|
const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); |
|
|
|
ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar); |
|
|
|
if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) |
|
|
|
|
|
|
|
{ |
|
|
|
if (ImGui::BeginPopupContextWindow()) |
|
|
|
if (ImGui::BeginPopupContextWindow()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ImGui::Selectable("Clear")) ClearLog(); |
|
|
|
if (ImGui::Selectable("Clear")) ClearLog(); |
|
|
@ -6724,6 +6725,7 @@ struct ExampleAppConsole |
|
|
|
ScrollToBottom = false; |
|
|
|
ScrollToBottom = false; |
|
|
|
|
|
|
|
|
|
|
|
ImGui::PopStyleVar(); |
|
|
|
ImGui::PopStyleVar(); |
|
|
|
|
|
|
|
} |
|
|
|
ImGui::EndChild(); |
|
|
|
ImGui::EndChild(); |
|
|
|
ImGui::Separator(); |
|
|
|
ImGui::Separator(); |
|
|
|
|
|
|
|
|
|
|
@ -6971,8 +6973,9 @@ struct ExampleAppLog |
|
|
|
Filter.Draw("Filter", -100.0f); |
|
|
|
Filter.Draw("Filter", -100.0f); |
|
|
|
|
|
|
|
|
|
|
|
ImGui::Separator(); |
|
|
|
ImGui::Separator(); |
|
|
|
ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) |
|
|
|
|
|
|
|
{ |
|
|
|
if (clear) |
|
|
|
if (clear) |
|
|
|
Clear(); |
|
|
|
Clear(); |
|
|
|
if (copy) |
|
|
|
if (copy) |
|
|
@ -7027,7 +7030,7 @@ struct ExampleAppLog |
|
|
|
|
|
|
|
|
|
|
|
if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) |
|
|
|
if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) |
|
|
|
ImGui::SetScrollHereY(1.0f); |
|
|
|
ImGui::SetScrollHereY(1.0f); |
|
|
|
|
|
|
|
} |
|
|
|
ImGui::EndChild(); |
|
|
|
ImGui::EndChild(); |
|
|
|
ImGui::End(); |
|
|
|
ImGui::End(); |
|
|
|
} |
|
|
|
} |
|
|
|