void OnCloseWindow(wxCloseEvent& event);
private:
- virtual bool DoCreate(wxWindow* parent,
+ virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
virtual void DoSetClientSize(int width, int height);
-#if wxCHECK_VERSION(2,7,0)
- #error "Remove DoDestroy(), it was only kept for binary backwards compatibility"
-#endif
-
- virtual void DoDestroy();
private:
DECLARE_EVENT_TABLE()
virtual void DoSetClientSize(int width, int height);
private:
- virtual bool DoCreate(wxWindow* parent,
+ virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
const wxString& name);
-#if wxCHECK_VERSION(2,7,0)
- #error "Remove DoDestroy(), it was only kept for binary backwards compatibility"
-#endif
-
- virtual void DoDestroy();
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxFrame)
virtual void DoGetPosition(int* x, int* y) const;
private:
-#if wxCHECK_VERSION(2,7,0)
- // DoDestroy() is not used anywhere else, DoCreate() should also be renamed
- // in src/motif/dialog.cpp, frame.cpp and toplevel.cp
- #error "Remove DoDestroy() and rename DoCreate() to XmDoCreateTLW(), they were only kept for binary backwards compatibility"
-#endif
-
// really create the Motif widget for TLW
- virtual bool DoCreate(wxWindow* parent,
+ virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
long style,
const wxString& name) = 0;
- virtual void DoDestroy() { }
wxString m_title;
};
return true;
}
-bool wxDialog::DoCreate(wxWindow* parent,
+bool wxDialog::XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
return true;
}
-void wxDialog::DoDestroy()
-{
-}
-
void wxDialog::SetModal(bool flag)
{
#ifdef __VMS
return true;
}
-bool wxFrame::DoCreate(wxWindow* parent,
+bool wxFrame::XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
return true;
}
-void wxFrame::DoDestroy()
-{
-}
-
wxFrame::~wxFrame()
{
m_isBeingDeleted = true;
m_windowId = ( id > -1 ) ? id : NewControlId();
- bool retval = DoCreate( parent, id, title, pos, size, style, name );
+ bool retval = XmDoCreateTLW( parent, id, title, pos, size, style, name );
if( !retval ) return false;