mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. (#2257)
This commit is contained in:
parent
6b97ded438
commit
c738f9ef92
3 changed files with 7 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue