[Win32Lib] setFocus() bug ??
- Posted by Robert Szalay <robsz1 at hotpop.com> Dec 21, 2002
- 422 views
Hello list. I was coding and I came accross what seems to be a bug (oohhhh nnoooooo!). <code> include win32lib.ew constant Win = create( Window, "TEST", 0, Default, Default, 300, 200, 0), box1 = create( EditText, "Box 1", Win, 5, 10, 90, 22, 0), box2 = create( EditText, "Box 2", Win, 5, 40, 90, 22, 0) procedure onFocus_box2(atom id, atom event, sequence params) setFocus(box1) end procedure setHandler(box2,w32HGotFocus, routine_id("onFocus_box2")) WinMain(Win,Normal) </code> When box2 gets focus, it gives focus to box1 but the cursor remains in box2 I experience this traumatizing event(:P) in Win32Lib v 57.9 & 57.11 Thanks for listening/reading/hopefully_responding Merry X-mas to all! Robert Szalay ---------------------------------------------