After a long 4 hours, I finally almost got it.
It works as it should so far (I had designed the font engine a while back on page 2?) and it appears to be holding up, right now you can add only numbers and a max of 6, I need to add the caret and a delete input function, there is no highlight or copy/paste, I really don't see a need for that in here, and I will focus on that when I get to the textbox aspect of the engine.
Code:
Logic {
if gold drop window is open and text area has focus then enable editing
capture keypresses to string
render string if window is open, update caret
}
Edit: I forgot that I used the Keyboard_Static function to handle user keyboard input, this uses the actual keydown of the form to handle inputs (which also includes the keyrepeatdelay of windows).
I'm going to go ahead and try and make the delay function for the keyboard_dynamic function using the timers we talked about above.
Edit: Ok, I played with the timer things and to no resolved. I can not figure out how to blink the caret without adding a ton of checks n stuff blink the caret ever second, the blink should last 1/2 a second.
Edit: Ok, I was able to add the timer but I used an actual timer control (I'm going to remove the timer and apply the time aspect to code and see if I can get it to work.)
Edit: While getting the coded timers (not control timers) setup and working, I solved the cursor caret blinking issue, I'm going to try and do the keyboard dinput for complete resolve!
Edit: All is resolved, I went with the Windows API function instead of trying to recreate it and using directinput for text input. I see no conflicts or any reasons not to do this for text input. I only have plans for 3 areas of text input (money drop, chatbox, player creation name input).
All working (including the text for plat/gold on item screen) and fixed the mouse drop during fast drags too!
http://img139.imageshack.us/img139/9646 ... tscopy.jpg