SetFocus problem?

I'm sure I'm missing something simple. SetFocus works fine within, for example, a complex dialog in my app. I build all the bits and pieces and at the end I say 'self.wordCorrected.SetFocus()' to put the focus on the wordCorrected TextCtrl where it belongs.

But when I try to do this with my (complicated) main window, nothing seems to happen. It contains two one-line TextCtrls, a row of buttons, a multiline TC, an STC, and anotther row of buttons. I try to give the STC the focus at the end of setup, as with the dialog, but focus goes to the top TextCtrl anyway, which is set read-only so focus isn't especially useful.

Charles Hartman