CompuServe Messages

#Window active help

    12-Jul-88 22:08:54
Fm: Black Belt Systems 76004,1771
To: Jim Vogel 73177,441
First, set ACTIVEWINDOW and INACTIVEWINDOW for btoh (all) windows. Next, keep a (set of) flag(s) that indicate which window YOU want to be active. When you get messages that indicate things aren't the way your internal flags say they SHOULD be, call ActivateWindow with the pointer to the window YOU want active. UNfortunately…. Our freinds at CBM have "bugged" us on this one. the ACTIVEWINDOW and INACTIVEWINDOW messages don't appear when you press the front or back gadgets of a window – the user can activate the "quietly", without your knowledge. Your only option IS to sit and watch the state of the window.flag variable, unless you accept that they can mess you up. Here's one workaround (I use it): Set raw keys (or whatever else) in the window you DONT want active… if the user activates it, and inadvertantly types something, then you get a message… which you can them hum over to the window YOU wanted active, at the same time deactivating the "wrong" window. The _real_ bad news is that CBM & crew don't plan to fix any intuition bugs till 1.4 and since 1.3 is still the stuff of myth…. well, YOU figure it out. –Ben–