mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-28 09:30:56 +01:00
Demo: Documents: Fix misusage of ListBoxHeader().
This commit is contained in:
parent
0e46d65b03
commit
8d53f834ee
@ -4402,11 +4402,13 @@ void ShowExampleAppDocuments(bool* p_open)
|
|||||||
{
|
{
|
||||||
ImGui::Text("Save change to the following items?");
|
ImGui::Text("Save change to the following items?");
|
||||||
ImGui::PushItemWidth(-1.0f);
|
ImGui::PushItemWidth(-1.0f);
|
||||||
ImGui::ListBoxHeader("##", close_queue_unsaved_documents, 6);
|
if (ImGui::ListBoxHeader("##", close_queue_unsaved_documents, 6))
|
||||||
|
{
|
||||||
for (int n = 0; n < close_queue.Size; n++)
|
for (int n = 0; n < close_queue.Size; n++)
|
||||||
if (close_queue[n]->Dirty)
|
if (close_queue[n]->Dirty)
|
||||||
ImGui::Text("%s", close_queue[n]->Name);
|
ImGui::Text("%s", close_queue[n]->Name);
|
||||||
ImGui::ListBoxFooter();
|
ImGui::ListBoxFooter();
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::Button("Yes", ImVec2(80, 0)))
|
if (ImGui::Button("Yes", ImVec2(80, 0)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user