I need to highlight a border around a parent window when any of its children
has the focus. I tried to use the EVT_SET_FOCUS hook, but this only works if
the actual window has the focus. I am working on both GTK and MXW and it
seems the behaviour is the same on both platforms (to be expected). I also
looked through the documentation to find something that might help me in
this regard, with no avail.
What is the easiest way to accomplish this? Any help or pointers in the
right direction would be appreciated.
Thanx
Gerrit van Dyk
···
-------------------------------------------------------------------------
This e-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged,
proprietary to the company and protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this e-mail is strictly prohibited. Opinions, conclusions and
other information in this message that do not relate to the official
business of our company shall be understood as neither given nor endorsed by
it.
What *I* would do is place something like a panel or a wxStaticBox underneath
the "parent" window that sticks out about two pixels on each edge. Then, you
can manage the color of that panel as the focus changes. It'll still be a
pain, but it should work.
···
On Thu, 7 Nov 2002 16:07:04 +0200, Gerrit Van Dyk wrote:
I need to highlight a border around a parent window when any of its children
has the focus. I tried to use the EVT_SET_FOCUS hook, but this only works if
the actual window has the focus. I am working on both GTK and MXW and it
seems the behaviour is the same on both platforms (to be expected). I also
looked through the documentation to find something that might help me in
this regard, with no avail.
What is the easiest way to accomplish this? Any help or pointers in the
right direction would be appreciated.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
I need to highlight a border around a parent window when any of its children
has the focus. I tried to use the EVT_SET_FOCUS hook, but this only works if
the actual window has the focus. I am working on both GTK and MXW and it
seems the behaviour is the same on both platforms (to be expected). I also
looked through the documentation to find something that might help me in
this regard, with no avail.
What is the easiest way to accomplish this? Any help or pointers in the
right direction would be appreciated.
There is a EVT_CHILD_FOCUS event that may do it for you. Otherwise you'll need to set a EVT_SET_FOCUS on each child window and have that handler call some method in the frame.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!