+
+void wxRearrangeDialog::AddExtraControls(wxWindow *win)
+{
+ wxSizer * const sizer = GetSizer();
+ wxCHECK_RET( sizer, "the dialog must be created first" );
+
+ wxASSERT_MSG( sizer->GetChildren().GetCount() == Pos_Max,
+ "calling AddExtraControls() twice?" );
+
+ sizer->Insert(Pos_Buttons, win, wxSizerFlags().Expand().Border());
+
+ win->MoveAfterInTabOrder(m_ctrl);
+
+ // we need to update the initial/minimal window size
+ sizer->SetSizeHints(this);
+}
+
+wxRearrangeList *wxRearrangeDialog::GetList() const
+{
+ wxCHECK_MSG( m_ctrl, NULL, "the dialog must be created first" );
+
+ return m_ctrl->GetList();
+}
+
+wxArrayInt wxRearrangeDialog::GetOrder() const
+{
+ wxCHECK_MSG( m_ctrl, wxArrayInt(), "the dialog must be created first" );
+
+ return m_ctrl->GetList()->GetCurrentOrder();
+}
+
+#endif // wxUSE_REARRANGECTRL