How to create a MoveAfterInTabOrder for BoxSizer

Hi,

I have a wx.Dialog and a few widgets on it including a wx.ComboBox.
For some reason, I need to group the wx.ComboBox together with a
statictext in a wx.BoxSizer. Now, I will need to change the order of
the widgets after their creation. However, wx.BoxSizer is not a widget
and it does not have the MoveAfterInTabOrder functionality and I need
to implement that. Can anyone give any hint on how to do that?

Thanks and Regards.
PM

sizer.Detatch(widget)
sizer.Insert(newPosition, widget, ...)
sizer.Layout()

Or, if you want to move the nested BoxSizer with all its widgets then you can detach and reinsert that.

···

On 1/31/12 9:09 PM, pmahata wrote:

Hi,

  I have a wx.Dialog and a few widgets on it including a wx.ComboBox.
For some reason, I need to group the wx.ComboBox together with a
statictext in a wx.BoxSizer. Now, I will need to change the order of
the widgets after their creation. However, wx.BoxSizer is not a widget
and it does not have the MoveAfterInTabOrder functionality and I need
to implement that. Can anyone give any hint on how to do that?

--
Robin Dunn
Software Craftsman