Strange behaviour on lost focus

What do other GTK apps do under the same use case with that theme?

I checked with the wxPython demo, .. When I select something inside a TextCtrl and then focus another window, the selection background changes color (but doesn't turn to white) and the foreground color turns to the greyish shade of the screenshot.. This is consistent across themes, so I never get the "white on white" problem.

> If its they do the same thing then it is the themes fault (this is
> usually the case).
>
> If it is different there may be an issue in the wxTextCtrl's
> implementation where it is not properly using all the theme
> information from the system.

It looks like I'm doing something that somehow changes the normal wxTextCtrl's behaviour.. :confused: (causing the selection background to turn white)

Thanks for your assistance!

···

On 10 Mar, 21:38, Cody Precord <codyprec...@gmail.com> wrote:

Do you call Skip in your focus event handlers?

···

On 3/11/10 12:35 AM, Federico Fanton wrote:

On 10 Mar, 21:38, Cody Precord <codyprec...@gmail.com> wrote:

> What do other GTK apps do under the same use case with that theme?

I checked with the wxPython demo, .. When I select something inside a
TextCtrl and then focus another window, the selection background changes
color (but doesn't turn to white) and the foreground color turns to the
greyish shade of the screenshot.. This is consistent across themes, so I
never get the "white on white" problem.

> If its they do the same thing then it is the themes fault (this is
> usually the case).
>
> If it is different there may be an issue in the wxTextCtrl's
> implementation where it is not properly using all the theme
> information from the system.

It looks like I'm doing something that somehow changes the normal
wxTextCtrl's behaviour.. :confused: (causing the selection background to turn
white)

--
Robin Dunn
Software Craftsman

I removed almost every call to Bind (surely every EVT_SET_FOCUS and every EVT_KILL_FOCUS) but the white-on-white is still there.. I noticed another "symptom" though: it happens when I drag the selected text, too. (I mean, the first phase of a drag-and-drop)

···

On 11 Mar, 19:31, Robin Dunn <ro...@alldunn.com> wrote:

> > It looks like I'm doing something that somehow changes the normal
> > wxTextCtrl's behaviour.. :confused: (causing the selection background to
> > turn white)
>
> Do you call Skip in your focus event handlers?