Re: [Win32Lib] setFocus() bug ??
- Posted by Derek Parnell <ddparnell at bigpond.com> Dec 21, 2002
- 383 views
You're lucky I'm working on the library right now, eh? I'll see what I can do (just for you of course) ---------------- cheers, Derek Parnell ----- Original Message ----- From: "Robert Szalay" <robsz1 at hotpop.com> To: "EUforum" <EUforum at topica.com> Sent: Saturday, December 21, 2002 6:41 PM Subject: [Win32Lib] setFocus() bug ?? > > 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 > > --------------------------------------------- > > > >