Detecting (lack of) input focus

Rolf wrote:

Does self.SetWindowStyle(wx.STAY_ON_TOP) help at all?

No. I'm already setting STAY_ON_TOP.

regards, Anders