Paul Young
2014-06-30 12:31:51 UTC
WX : 3.0.1
OS : Windows 8.1
COMPILER: VC12 IDE
I have a window which contains some sizers and some static text. I
would prefer that it never accept focus.
I added the following to my wxFrame subclass:
bool AcceptsFocus() const { return false; }
bool AcceptsFocusRecursively() const { return false; }
bool AcceptsFocusFromKeyboard() const { return false; }
It had no effect as far as I can tell. I also tried it in
the minimal sample and it had no effect.
Should this work? Is there some other way to do this?
Paul
OS : Windows 8.1
COMPILER: VC12 IDE
I have a window which contains some sizers and some static text. I
would prefer that it never accept focus.
I added the following to my wxFrame subclass:
bool AcceptsFocus() const { return false; }
bool AcceptsFocusRecursively() const { return false; }
bool AcceptsFocusFromKeyboard() const { return false; }
It had no effect as far as I can tell. I also tried it in
the minimal sample and it had no effect.
Should this work? Is there some other way to do this?
Paul
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users