Text field from scratch
Algorithms
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm not really sure if this is the right category but here is the deal: I want to make myself a textbox. I know how to create one using WinApi, but my question is rather directed towards the logic behind it. More specificaly, I am interested how the inserting text is done. ? I have some idea how it might work, but it's probably not enough to be able to actually code it. I believe they don't shift the whole char array after each insert - keypress, my guess is there is some map putting together [cursor position, text] that is later applied when writing changes. How is this normally done? How would you proceed?