Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Change InputText's Value #1216

Closed
DrJedikiah opened this issue Jul 5, 2017 · 2 comments
Closed

How To Change InputText's Value #1216

DrJedikiah opened this issue Jul 5, 2017 · 2 comments

Comments

@DrJedikiah
Copy link

DrJedikiah commented Jul 5, 2017

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.

@DrJedikiah DrJedikiah changed the title How To Set InputText's Value How To Change InputText's Value Jul 7, 2017
@DrJedikiah
Copy link
Author

I've discovered a function called strcpy :D :D Problem solved.

@ocornut
Copy link
Owner

ocornut commented Jul 8, 2017 via email

ocornut added a commit that referenced this issue Feb 7, 2024
Very highly requested feature (#6962, #5219, #3290, #4627, #5054, #3878, #2881, #1506, #1216, #968).
Also useful for interactive completion/selection popups (#2057, #718)
Based on @kudaba PR. Design for Inputtext V2 should make this obsolete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants