InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. (#2257)

This commit is contained in:
omar
2019-01-02 11:03:56 +01:00
parent 6b97ded438
commit c738f9ef92
3 changed files with 7 additions and 3 deletions

View File

@ -480,7 +480,7 @@ static void ShowDemoWindowWidgets()
ImGui::SameLine(); ShowHelpMarker("You can apply arithmetic operators +,*,/ on numerical values.\n e.g. [ 100 ], input \'*2\', result becomes [ 200 ]\nUse +- to subtract.\n");
static float f0 = 0.001f;
ImGui::InputFloat("input float", &f0, 0.01f, 1.0f);
ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f");
static double d0 = 999999.00000001;
ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f");