re: setFocus()

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

Forgot to ask, ages ago, why this doesn't even work anymore.

include win32lib.ew -- ver. 0.55+
constant
mywin=create(Window,"TestFocus",0,10,10,200,200,0),
btn1=create(PushButton,"One",mywin,10,10,60,25,0),
btn2=create(PushButton,"Two",mywin,10,50,60,25,0)
showWindow(mywin,SW_NORMAL)
setFocus(btn2)
WinMain(mywin,Normal)
----end----

I've tried 'wrapping' the setFocus() in an onOpen(),
used setVisible()'s,
tried without showWindow(),
etc, and it still don't wanna...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu