enum wxDialogModality
{
- wxDIALOG_MODALITY_NONE = 0,
- wxDIALOG_MODALITY_WINDOW_MODAL = 1,
- wxDIALOG_MODALITY_APP_MODAL = 2
+ wxDIALOG_MODALITY_NONE = 0,
+ wxDIALOG_MODALITY_WINDOW_MODAL = 1,
+ wxDIALOG_MODALITY_APP_MODAL = 2
};
extern WXDLLIMPEXP_DATA_CORE(const char) wxDialogNameStr[];
virtual bool IsModal() const = 0;
// show the dialog frame-modally (needs a parent), using app-modal
// dialogs on platforms that don't support it
- virtual bool ShowWindowModal () ;
+ virtual void ShowWindowModal () ;
virtual void SendWindowModalDialogEvent ( wxEventType type );
// Modal dialogs have a return code - usually the id of the last
static void EnableLayoutAdaptation(bool enable) { sm_layoutAdaptation = enable; }
// modality kind
- wxDialogModality GetModality() const;
+ virtual wxDialogModality GetModality() const;
protected:
// emulate click of a button with the given id if it's present in the dialog
//
wxDialog *GetDialog() const
{ return wxStaticCast(GetEventObject(), wxDialog); }
-
- int GetReturnCode() const
+
+ int GetReturnCode() const
{ return GetDialog()->GetReturnCode(); }
virtual wxEvent *Clone() const { return new wxWindowModalDialogEvent (*this); }