[REBOL] Re: Focus (carret?) - focus face, unfocus, system/view/focal-face
From: sanghabum::aol::com at: 27-Aug-2001 15:26
Can I add a question about focus?
I've got two windows, and I want the user to do something in tbe other one. I
can set the focus in the second window, but I don't know a decent way to make
the second window the top one. For example:
==========
unview/all
Panel1: layout [field1: field button "Swap window" [focus field2]]
Panel2: layout [field2: field button "Swap window" [focus field1]]
view/new panel1
view/new panel2
do-events
==========
Under windows, the focus does not leap from one window to the other....The
user has to manually find and click it.
I know I could do:
Panel1: layout [field1: field
button "Swap window" [
unview/panel2
focus field2
View/new Panel2
]
]
But that's overkill, and makes the window flicker if it is at all complicated.
Any suggestions?
Thanks,
Colin.