mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Demo: Displaying version number in test window.
This commit is contained in:
		| @@ -192,7 +192,7 @@ void ImGui::ShowTestWindow(bool* p_open) | |||||||
|     //ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.65f);    // 2/3 of the space for widget and 1/3 for labels |     //ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.65f);    // 2/3 of the space for widget and 1/3 for labels | ||||||
|     ImGui::PushItemWidth(-140);                                 // Right align, keep 140 pixels for labels |     ImGui::PushItemWidth(-140);                                 // Right align, keep 140 pixels for labels | ||||||
|  |  | ||||||
|     ImGui::Text("Dear ImGui says hello."); |     ImGui::Text("dear imgui says hello. (%s)", IMGUI_VERSION); | ||||||
|  |  | ||||||
|     // Menu |     // Menu | ||||||
|     if (ImGui::BeginMenuBar()) |     if (ImGui::BeginMenuBar()) | ||||||
| @@ -1575,6 +1575,7 @@ void ImGui::ShowTestWindow(bool* p_open) | |||||||
|  |  | ||||||
|         if (ImGui::TreeNode("Borders")) |         if (ImGui::TreeNode("Borders")) | ||||||
|         { |         { | ||||||
|  |             // NB: Future columns API should allow automatic horizontal borders. | ||||||
|             static bool h_borders = true; |             static bool h_borders = true; | ||||||
|             static bool v_borders = true; |             static bool v_borders = true; | ||||||
|             ImGui::Checkbox("horizontal", &h_borders); |             ImGui::Checkbox("horizontal", &h_borders); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user