mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-16 08:04:00 +00:00
Demo: InputText password demo filters out blanks (#515)
This commit is contained in:
parent
b329a36d27
commit
2c6bc95dd5
@ -441,9 +441,9 @@ void ImGui::ShowTestWindow(bool* p_opened)
|
|||||||
|
|
||||||
ImGui::Text("Password input");
|
ImGui::Text("Password input");
|
||||||
static char bufpass[64] = "password123";
|
static char bufpass[64] = "password123";
|
||||||
ImGui::InputText("password", bufpass, 64, ImGuiInputTextFlags_Password);
|
ImGui::InputText("password", bufpass, 64, ImGuiInputTextFlags_Password | ImGuiInputTextFlags_CharsNoBlank);
|
||||||
ImGui::SameLine(); ShowHelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n");
|
ImGui::SameLine(); ShowHelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n");
|
||||||
ImGui::InputText("password (clear)", bufpass, 64);
|
ImGui::InputText("password (clear)", bufpass, 64, ImGuiInputTextFlags_CharsNoBlank);
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user