Finding which control has focus
Larry Bates
larry.bates at websafe.com
Tue Oct 2 13:11:46 PDT 2007
I have a frame that contains 6 controls: ComboBox, ExpandoTextCtrl, and 2 list
controls, cancel button, send button. I want to know if there is some way to
trap the fact that a user clicked the mouse on the ComboBox, ExpandoTextCtrl or
either of the 2 list controls. I would like to make the label bold to show
which control has the focus. onSetFocus/onKillFocus doesn't fire when you click
on these controls. I can't even get it to fire when I do
MyExpandoTextCtrl.SetFocus() (but the focus does change) Is there some other
way? I don't have these on separate windows or panels.
Thanks in advance.
Larry Bates
More information about the wxpython-users
mailing list