bwong@cbnewsc.ATT.COM (bruce.f.wong) (01/09/90)
I'm using tNt to build a RowColumnBag stuffed with ClassTextControl's with the following input focus behaviour: * On creation: the first field has the focus. * After the field with the focus calls the notify, the next field will have the input focus. This wraps around so the last field will transfer focus to the first field. * This is independent of the current focus management policy. The generalization of this problem is: Given a bag with canvases that are interested in the focus, how can focus be transfered without moving the mouse ? Please explain how this might be done and, if possible, provide sample code. -- Bruce F. Wong ATT Bell Laboratories att!iexist!bwong 200 Park Plaza, Rm 1B-232 708-713-5111 Naperville, Ill 60566-7050
bwong@cbnewsc.ATT.COM (bruce.f.wong) (01/09/90)
In article <12663@cbnewsc.ATT.COM> bwong@cbnewsc.ATT.COM (bruce.f.wong) writes: >... >The generalization of this problem is: > >Given a bag with canvases that are interested in the focus, >how can focus be transfered without moving the mouse ? After firing off this article, I read about ``setinputfocus'' in Appendix B of the NeWS Programmer's Guide and it does exactly what I want. I was wallowing in all the details on how bags manage focus that I overlooked this simple mechanism and got very confused too. -- Bruce F. Wong ATT Bell Laboratories att!iexist!bwong 200 Park Plaza, Rm 1B-232 708-713-5111 Naperville, Ill 60566-7050