mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Demo: extra (somehow duplicate) Selectables+Columns demo
This commit is contained in:
		| @@ -442,6 +442,19 @@ void ImGui::ShowTestWindow(bool* p_open) | ||||
|                 ImGui::Selectable("Hello.h", &selected[2]);   ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); | ||||
|                 ImGui::TreePop(); | ||||
|             } | ||||
|             if (ImGui::TreeNode("In columns")) | ||||
|             { | ||||
|                 ImGui::Columns(3, NULL, false); | ||||
|                 static bool selected[16] = { 0 }; | ||||
|                 for (int i = 0; i < 16; i++) | ||||
|                 { | ||||
|                     char label[32]; sprintf(label, "Item %d", i); | ||||
|                     if (ImGui::Selectable(label, &selected[i])) {} | ||||
|                     ImGui::NextColumn(); | ||||
|                 } | ||||
|                 ImGui::Columns(1); | ||||
|                 ImGui::TreePop(); | ||||
|             } | ||||
|             if (ImGui::TreeNode("Grid")) | ||||
|             { | ||||
|                 static bool selected[16] = { true, false, false, false, false, true, false, false, false, false, true, false, false, false, false, true }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user