🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #131

Focus cycling

#131
From: Kasey S. Osborn
Date: Thu, 09 Nov 1989 17:44
20 lines
1378 bytes
A PM programming point to ponder:

I have an application that owns a number of child standard windows.
(Each is a window on a tuple of a table, but that's not important.)
I want the keyboard controls to cycle the focus through them in both
directions, like when the user hits Tab and Shift-Tab.

Okay, fine, to go one of the two directions, I set the focus to the
bottommost child window.  That takes care of Shift-Tab.

However, when it comes to setting the focus to the window that is
just below the focus window, I am having difficulty.  Somehow I need
to make the focus window become the bottommost window.  This is what
OS/2 does to windows listed in Task List when one hits Alt-Esc.

Setting the focus to the window next to the top causes the focus
window to be moved second.  This limits you to switching between the
two topmost windows, so that's out.  Any ideas?  (Proven, please.)

-Kasey
Technical Details
Message-ID: <13664@orstcs.CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ogccse!orstcs!uther.CS.ORST.EDU!osbornk

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ogccse!orstcs!uther.CS.ORST.EDU!osbornk
From: osbornk@uther.CS.ORST.EDU (Kasey S. Osborn)
Newsgroups: comp.os.os2
Subject: Focus cycling
Message-ID: <13664@orstcs.CS.ORST.EDU>
Date: 9 Nov 89 17:44:07 GMT
Sender: usenet@orstcs.CS.ORST.EDU
Reply-To: osbornk@mist.CS.ORST.EDU (Kasey S. Osborn)
Organization: Oregon State Univ. - CS - Corvallis, OR
Lines: 20