[Win32Lib] setFocus() bug ??

new topic     » topic index » view thread      » older message » newer message

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
sad

I experience this traumatizing event(:P) in Win32Lib v 57.9 & 57.11 sad

Thanks for listening/reading/hopefully_responding

Merry X-mas to all!
    Robert Szalay

---------------------------------------------

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu