wxControl::~wxControl()
{
m_isBeingDeleted = TRUE;
+}
- // If we delete an item, we should initialize the parent panel,
- // because it could now be invalid.
- wxWindow *parent = (wxWindow *)GetParent();
- if (parent)
- {
- if (parent->GetDefaultItem() == (wxButton*) this)
- parent->SetDefaultItem(NULL);
- }
+wxSize wxControl::DoGetBestSize()
+{
+ return wxSize(DEFAULT_ITEM_WIDTH, DEFAULT_ITEM_HEIGHT);
}
bool wxControl::ProcessCommand(wxCommandEvent& event)