ImGui::InputText - set text from buffer #6962

Closed
opened 2023-10-26 19:15:17 +00:00 by ElectroidDes · 0 comments
ElectroidDes commented 2023-10-26 19:15:17 +00:00 (Migrated from github.com)

Please tell me, is it possible using ImGui::InputText to set text in the input field from the buffer, completely replacing the text in the input field, and not just using the keyboard?

I know this can be done initially when creating the ImGui::InputText:

std::string buffer = "Preview text";

ImGui::InputText(&title_name[0], &buffer[0], ...);

But how to do this at any time after creating the InputText? Is this possible?

Please tell me, is it possible using ImGui::InputText to set text in the input field from the buffer, completely replacing the text in the input field, and not just using the keyboard? I know this can be done initially when creating the ImGui::InputText: ``` std::string buffer = "Preview text"; ImGui::InputText(&title_name[0], &buffer[0], ...); ``` But how to do this at any time after creating the InputText? Is this possible?
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#6962
No description provided.