Re: Keystrokes simulations
- Posted by Sergio Gelli <sergelli at uol.com.br> Jul 03, 2006
- 593 views
Greg Haberek wrote: > > > but How the control receives the key TAB ? > > Maibe I don't explain my problem exactly. > > I need simulates a TAB KEY to change the focus to another > > control. > > With what you were doing, you'd have to do this: > > VOID = invokeHandler( WinMain1, w32KeyPress, {VK_TAB} ) > > > How I do it? > > This usually works to force focus to another control. > > setFocus( MyControl ) > > > ~Greg > > Hello Greg, I try it : VOID = invokeHandler( WinMain1, w32KeyPress, {VK_TAB} ) But it does nothing. I need change the focus control without setFocus() because it not make the Windows lost the exhibition order of the controls focus. Ex: I have 1,2,3,4 controls. The focus is on number 1. After do a setFocus(3) if press a Tab Key the focus go to the 2 controls, instead the 4. Pehalps don't exists how do a simulate Keystrokes in Win32 ? Sérgio Gelli