How To Change InputText's Value #1216

Closed
opened 2017-07-05 23:14:16 +00:00 by DrJedikiah · 1 comment
DrJedikiah commented 2017-07-05 23:14:16 +00:00 (Migrated from github.com)

Hi, I made a simple gui and I made a login screen, so I have two inputs and a button.
The issue is, I wanna make a remember me button but I can't change the value of the input in load.
static char username[64] = GetUsername(); ImGui::InputText("Username", username, 64, ImGuiInputTextFlags_CharsNoBlank);

How I can set the input? I can't set it like username = something; either. GetUsername() is string btw.

Hi, I made a simple gui and I made a login screen, so I have two inputs and a button. The issue is, I wanna make a remember me button but I can't change the value of the input in load. `static char username[64] = GetUsername(); ImGui::InputText("Username", username, 64, ImGuiInputTextFlags_CharsNoBlank);` How I can set the input? I can't set it like username = something; either. GetUsername() is string btw.
ocornut commented 2017-07-08 11:00:42 +00:00 (Migrated from github.com)

Nice color theme!

Nice color theme!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#1216
No description provided.