wxFRAME_EX_METAL,
wxDIALOG_EX_METAL,
+ wxWS_EX_CONTEXTHELP,
// Obsolete
wxDIALOG_MODAL,
wxDIALOG_MODELESS,
wxUSER_COLOURS,
wxNO_3D,
+
+ wxFRAME_EX_CONTEXTHELP,
+ wxDIALOG_EX_CONTEXTHELP,
};
+
enum
{
wxFULLSCREEN_NOMENUBAR,
// return True if the frame is maximized
virtual bool IsMaximized() const;
+ // return true if the frame is always maximized
+ // due to native guidelines or current policy
+ virtual bool IsAlwaysMaximized() const;
+
// return True if the frame is iconized
virtual bool IsIconized() const;
virtual bool IsActive();
#ifdef __WXMAC__
- void MacSetMetalAppearance( bool on );
+ %extend {
+ void MacSetMetalAppearance( bool on ) {
+ int style = self->GetExtraStyle();
+ if ( on )
+ style |= wxFRAME_EX_METAL;
+ else
+ style &= ~wxFRAME_EX_METAL;
+ self->SetExtraStyle(style);
+ }
+ }
bool MacGetMetalAppearance() const;
#else
%extend
void , CenterOnScreen(int dir = wxBOTH),
"Center the window on screen", "");
%pythoncode { CentreOnScreen = CenterOnScreen }
+
+#ifdef __WXMSW__
+ bool EnableCloseButton(bool enable = true);
+#else
+ %extend {
+ bool EnableCloseButton(bool enable = true) { return false; }
+ }
+#endif
+
+
+
+ DocDeclStr(
+ virtual wxWindow *, GetDefaultItem() const,
+ "Get the default child of this parent, i.e. the one which is activated
+by pressing <Enter> such as the OK button on a wx.Dialog.", "");
+
+ DocDeclStr(
+ virtual wxWindow *, SetDefaultItem(wxWindow * child),
+ "Set this child as default, return the old default.", "");
+
+ DocDeclStr(
+ virtual void , SetTmpDefaultItem(wxWindow * win),
+ "Set this child as temporary default", "");
+
+ DocDeclStr(
+ virtual wxWindow *, GetTmpDefaultItem() const,
+ "Return the temporary default item, which can be None.", "");
+
};
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %property(MenuBar, GetMenuBar, SetMenuBar, doc="See `GetMenuBar` and `SetMenuBar`");
+ %property(StatusBar, GetStatusBar, SetStatusBar, doc="See `GetStatusBar` and `SetStatusBar`");
+ %property(StatusBarPane, GetStatusBarPane, SetStatusBarPane, doc="See `GetStatusBarPane` and `SetStatusBarPane`");
+ %property(ToolBar, GetToolBar, SetToolBar, doc="See `GetToolBar` and `SetToolBar`");
};
//---------------------------------------------------------------------------
void SetReturnCode(int returnCode);
int GetReturnCode() const;
- // The identifier for the affirmative button
+ // Set the identifier for the affirmative button: this button will close
+ // the dialog after validating data and calling TransferDataFromWindow()
void SetAffirmativeId(int affirmativeId);
int GetAffirmativeId() const;
- // Identifier for Esc key translation
+ // Set identifier for Esc key translation: the button with this id will
+ // close the dialog without doing anything else; special value wxID_NONE
+ // means to not handle Esc at all while wxID_ANY means to map Esc to
+ // wxID_CANCEL if present and GetAffirmativeId() otherwise
void SetEscapeId(int escapeId);
int GetEscapeId() const;
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %property(AffirmativeId, GetAffirmativeId, SetAffirmativeId, doc="See `GetAffirmativeId` and `SetAffirmativeId`");
+ %property(EscapeId, GetEscapeId, SetEscapeId, doc="See `GetEscapeId` and `SetEscapeId`");
+ %property(ReturnCode, GetReturnCode, SetReturnCode, doc="See `GetReturnCode` and `SetReturnCode`");
};
//---------------------------------------------------------------------------