From: John L. <jla...@gm...> - 2012-10-17 03:34:54
|
On Tue, Oct 16, 2012 at 3:53 PM, Paul K <pau...@ya...> wrote: > In the best tradition of answering my own question, the solution was > easy: create wxStaticBox (or wxStaticBoxSizer) *before* checkboxes are > created. > > There seems to be a bug (or feature) in how the order in event > traversal is handled and if the staticbox is created after the > checkboxes, none of the checkboxes get their events on OSX (you can > still click on the area of the checkbox label if it sticks outside of > the static box). The wxStaticBox used to be a little bit of an oddity in that it really is a container, but you don't add the children to it. In 2.9 the items inside of it will be added as children of the static box as you would for a wxPanel. That was a good find! Thanks, John |