I have several text controls in a panel, and I want to be able to switch between them by pressing tab. The problem is when some controls are greyed out - pressing tab still gives them focus (you cannot see the caret), and pressing tab once more brings the caret to the next enabled text ctrl.
This does not seem like correct behavior to me. How could I change or override it?
Thanks,
James Shaw
···
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Hi James,
I have several text controls in a panel, and I want to be able to switch
between them by pressing tab. The problem is when some controls are greyed
out - pressing tab still gives them focus (you cannot see the caret), and
pressing tab once more brings the caret to the next enabled text ctrl.
This does not seem like correct behavior to me. How could I change or
override it?
I bet, it's some other control, not the disabled one...
Try installing this Idle handler to see whats going on:
def OnIdle(self, event):
f = wxWindow_FindFocus()
if f:
print "Focus:", f.GetClassName()
Thanks,
James Shaw
Cheers,
Hans-Peter
···
On Friday, 22. March 2002 11:48, James Shaw wrote: