The function activate-pane
gives the focus to the pane
pane
and brings the window containing
pane
to the front.
If
pane
cannot accept the focus then activate-pane
chooses a sensible alternative inside the same interface.
This example demonstrates how to swap the focus from one window to another.
(setq text-input-pane
(capi:contain (make-instance
'capi:text-input-pane)))
(setq button
(capi:contain (make-instance
'capi:push-button
:text "Press Me")))
(capi:activate-pane text-input-pane)
(capi:activate-pane button)
hide-interface
raise-interface
set-object-automatic-resize
show-interface
quit-interface
simple-pane
Manipulating top-level windows
CAPI User Guide and Reference Manual (Windows version) - 25 Feb 2015