Hi, I am trying to create a multiline textfield on a window that has the -dialogui option set but the big problem is that I cannot move the focus out of that window by pressing the tab key.
I have tried to use the onKeyDown, onKeyUp, onChar events and GetKeyboardState method to trap the tab and shift+tab key, and when those key are pressed, the focus is passed to the next or prior control from the window as it should. The problem is that if another key is pressed in the multiline textfield (the home key, page up, down, end, the arrow keys, the letters...) nothing happends. When an event like onKeyDown traps a keystroke, if that key pressed is a letter or an arrow key, the function that handles the event doesn't do anything with the key, but I want that letter to be printed on the textfield. I am able to do a $Win->Textfield->ReplaceSel(chr($key)) but it works only if the key is a letter, but it doesn't work if it is a arrow, or home, end, etc. Is there a solution for doing what I want? Thank you. Teddy