2009/10/27 Viktor Griph <[email protected]>: > I'm looking for a way to ensure that no window has focus under certain > conditions for a module I'm working on, and I've figured that there is > no good way to forcefully move the focus to the nofocus window. It is > possible by something like "Current WindowStyle NeverFocus", but then > the module would have to know what to restore the focus policy to.
I think this is exactly the right thing to do -- since it's special case. And in your example, a simple: Pick DestroyWindowStyle ... is then all that's needed to restore the window to its previous style. > Would adding a DeleteFocus command be a good solution, or is there > some other preferred way to achieve this? I can't say I am in favour of this. -- Thomas Adam
