Document wxWindowModalDialogEvent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -607,12 +607,15 @@ public:
|
|||||||
user from interacting with their parent frame only but not with the
|
user from interacting with their parent frame only but not with the
|
||||||
rest of the application. They also don't block the program execution
|
rest of the application. They also don't block the program execution
|
||||||
but instead return immediately, as Show(), and generate a
|
but instead return immediately, as Show(), and generate a
|
||||||
wxEVT_WINDOW_MODAL_DIALOG_CLOSED event later when the dialog is closed.
|
wxEVT_WINDOW_MODAL_DIALOG_CLOSED event (wxWindowModalDialogEvent)
|
||||||
|
later when the dialog is closed.
|
||||||
|
|
||||||
Currently this function is only fully implemented in wxOSX ports, under
|
Currently this function is only fully implemented in wxOSX ports, under
|
||||||
the other platforms it behaves like ShowModal() (but also sends the
|
the other platforms it behaves like ShowModal() (but also sends the
|
||||||
above mentioned event).
|
above mentioned event).
|
||||||
|
|
||||||
|
@see wxWindowModalDialogEvent
|
||||||
|
|
||||||
@since 2.9.0
|
@since 2.9.0
|
||||||
*/
|
*/
|
||||||
void ShowWindowModal();
|
void ShowWindowModal();
|
||||||
@@ -659,12 +662,23 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Event sent by wxDialog::ShowWindowModal() when the dialog closes.
|
||||||
|
|
||||||
|
@since 2.9.0
|
||||||
|
*/
|
||||||
class wxWindowModalDialogEvent : public wxCommandEvent
|
class wxWindowModalDialogEvent : public wxCommandEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// Constructor
|
||||||
wxWindowModalDialogEvent (wxEventType commandType = wxEVT_NULL, int id = 0);
|
wxWindowModalDialogEvent (wxEventType commandType = wxEVT_NULL, int id = 0);
|
||||||
|
|
||||||
|
/// Return the corresponding dialog.
|
||||||
wxDialog *GetDialog() const;
|
wxDialog *GetDialog() const;
|
||||||
|
|
||||||
|
/// Return the dialog's return code.
|
||||||
int GetReturnCode() const;
|
int GetReturnCode() const;
|
||||||
|
|
||||||
|
/// Clone the event.
|
||||||
virtual wxEvent *Clone() const;
|
virtual wxEvent *Clone() const;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user