added wxDialog::GetParentForModalDialog() and use it to try to always create modal dialogs with a parent (slightly modified patch 1702962)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -64,6 +64,10 @@ public:
|
||||
void SetEscapeId(int escapeId);
|
||||
int GetEscapeId() const { return m_escapeId; }
|
||||
|
||||
// Returns the parent to use for modal dialogs if the user did not specify it
|
||||
// explicitly
|
||||
wxWindow *GetParentForModalDialog(wxWindow *parent = NULL) const;
|
||||
|
||||
#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||
// splits text up at newlines and places the
|
||||
// lines into a vertical wxBoxSizer
|
||||
|
Reference in New Issue
Block a user