It looks like the static box needs to have the control container code
added to it so it can handle the tab traversal events. Please create a
trac ticket about this.
BTW, you have some other problems in your code. You are adding the
items that are children of the static box to the panel's sizer. You
should treat the static box (for layout related things) as if it was
just another panel. IOW, it should have it's own sizer for managing its
own children.
Also the wxStaticBoxSizer probably shouldn't be used in this case. Its
purpose is to manage the size of the box so it fits around the children
of the sizer. Since the box should have its own sizer assigned to it,
and since you can then just add the box directly to the parent's sizer,
then the wxStaticBoxSizer just becomes excess baggage.
--
Robin Dunn
Software Craftsman
http://wxPython.org
Assuming that my code is ok this time then I think I should probably
report this one and maybe an error/warning/exception should be thrown if
one keeps using the SB sizer.
Or should I create two different tickets?
Werner
Done - Ticket #13510
>
> BTW, you have some other problems in your code. You are adding the
> items that are children of the static box to the panel's sizer. You
> should treat the static box (for layout related things) as if it was
> just another panel. IOW, it should have it's own sizer for managing
> its own children.
>
> Also the wxStaticBoxSizer probably shouldn't be used in this case.
> Its purpose is to manage the size of the box so it fits around the
> children of the sizer. Since the box should have its own sizer
> assigned to it, and since you can then just add the box directly to
> the parent's sizer, then the wxStaticBoxSizer just becomes excess
> baggage.
>
I tried this but then the SB label doesn't show, mentioned it in the
above ticket and provided two different test files.
Werner