Prevent unnecessary assert when someone tries to
move the native file dialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,6 +56,13 @@ public:
|
|||||||
//private:
|
//private:
|
||||||
bool m_destroyed_by_delete;
|
bool m_destroyed_by_delete;
|
||||||
|
|
||||||
|
// override this from wxTLW since the native
|
||||||
|
// form doesn't have any m_wxwindow
|
||||||
|
virtual void DoSetSize(int x, int y,
|
||||||
|
int width, int height,
|
||||||
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
@@ -56,6 +56,13 @@ public:
|
|||||||
//private:
|
//private:
|
||||||
bool m_destroyed_by_delete;
|
bool m_destroyed_by_delete;
|
||||||
|
|
||||||
|
// override this from wxTLW since the native
|
||||||
|
// form doesn't have any m_wxwindow
|
||||||
|
virtual void DoSetSize(int x, int y,
|
||||||
|
int width, int height,
|
||||||
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
@@ -267,6 +267,14 @@ bool wxFileDialog::Show( bool show )
|
|||||||
return wxGenericFileDialog::Show( show );
|
return wxGenericFileDialog::Show( show );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFileDialog::DoSetSize(int x, int y, int width, int height, int sizeFlags )
|
||||||
|
{
|
||||||
|
if (!m_wxwindow)
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
wxGenericFileDialog::DoSetSize( x, y, width, height, sizeFlags );
|
||||||
|
}
|
||||||
|
|
||||||
wxString wxFileDialog::GetPath() const
|
wxString wxFileDialog::GetPath() const
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK24__
|
#ifdef __WXGTK24__
|
||||||
|
@@ -267,6 +267,14 @@ bool wxFileDialog::Show( bool show )
|
|||||||
return wxGenericFileDialog::Show( show );
|
return wxGenericFileDialog::Show( show );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFileDialog::DoSetSize(int x, int y, int width, int height, int sizeFlags )
|
||||||
|
{
|
||||||
|
if (!m_wxwindow)
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
wxGenericFileDialog::DoSetSize( x, y, width, height, sizeFlags );
|
||||||
|
}
|
||||||
|
|
||||||
wxString wxFileDialog::GetPath() const
|
wxString wxFileDialog::GetPath() const
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK24__
|
#ifdef __WXGTK24__
|
||||||
|
Reference in New Issue
Block a user