From 99ff45ad2e33d44934ddbda1a9a7da44d1a18b11 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 27 May 2015 21:42:16 +0100 Subject: [PATCH] Tweak context menu example --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 039bf1ce..bc86d29a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10617,7 +10617,7 @@ void ImGui::ShowTestWindow(bool* opened) } static float value = 0.5f; - ImGui::PushItemWidth(100); ImGui::DragFloat("Context Menu", &value); ImGui::PopItemWidth(); + ImGui::Text("Value = %.3f", value); if (ImGui::IsItemHovered() && ImGui::IsMouseClicked(1)) ImGui::OpenPopup("context menu"); ImGui::SameLine(); ImGui::Text("<-- right-click");