+ if ( m_gbs->CheckForIntersection(wxGBPosition(3,6), wxGBSpan(1,1)) )
+ wxMessageBox(
+_T("wxGridBagSizer will not allow items to be in the same cell as\n\
+another item, so this operation will fail. You will also get an assert\n\
+when compiled in debug mode."), _T("Warning"), wxOK | wxICON_INFORMATION);
+
+ if ( m_gbs->SetItemPosition(btn, wxGBPosition(3,6)) )
+ {
+ m_lastPos = curPos;
+ btn->SetLabel(_T("Move it back"));
+ }