virtual void SetTitle(const wxString& title);
virtual wxString GetTitle() const;
+ // enable/disable close button [x]
+ virtual bool EnableCloseButton(bool enable );
+
// Set the shape of the window to the given region.
// Returns True if the platform supports this feature
// (and the operation is successful.)
"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,
//---------------------------------------------------------------------------
%newgroup
+%{
+#define wxDEFAULT_MINIFRAME_STYLE wxCAPTION | wxRESIZE_BORDER | wxTINY_CAPTION_HORIZ
+%}
+
+enum {
+ wxDEFAULT_MINIFRAME_STYLE
+};
+
MustHaveApp(wxMiniFrame);
const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
+ long style = wxDEFAULT_MINIFRAME_STYLE,
const wxString& name = wxPyFrameNameStr);
%RenameCtor(PreMiniFrame, wxMiniFrame());
const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
+ long style = wxDEFAULT_MINIFRAME_STYLE,
const wxString& name = wxPyFrameNameStr);
};