// Purpose: interface of wxPropertySheetDialog
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
@class wxPropertySheetDialog
- @wxheader{propdlg.h}
This class represents a property sheet dialog: a tabbed dialog
for showing settings. It is optimized to show flat tabs
bool MyPropertySheetDialog::Create(...)
{
if (!wxPropertySheetDialog::Create(...))
- return @false;
+ return false;
CreateButtons(wxOK|wxCANCEL|wxHELP);
// Add page
wxPanel* panel = new wxPanel(GetBookCtrl(), ...);
- GetBookCtrl()->AddPage(panel, wxT("General"));
+ GetBookCtrl()->AddPage(panel, "General");
LayoutDialog();
- return @true;
+ return true;
}
@endcode
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
- const wxString& name = "dialogBox");
+ const wxString& name = wxDialogNameStr);
/**
Override this if you wish to add the book control in a way different from the
/**
Call this from your own Create function, before adding buttons and pages.
*/
- bool Create(wxWindow* parent, wxWindowID id,
- const wxString& title,
+ bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
- const wxString& name = "dialogBox");
+ const wxString& name = wxDialogNameStr);
/**
Override this if you wish to create a different kind of book control; by
@note On PocketPC, no buttons are created.
*/
- void CreateButtons(int flags = wxOK|wxCANCEL);
+ virtual void CreateButtons(int flags = wxOK|wxCANCEL);
/**
Returns the book control that will contain your settings pages.
@note On PocketPC, this does nothing, since the dialog will be shown full-screen,
and the layout will be done when the dialog receives a size event.
*/
- void LayoutDialog(int centreFlags = wxBOTH);
+ virtual void LayoutDialog(int centreFlags = wxBOTH);
/**
Sets the book control used for the dialog.
*/
void SetBookCtrl(wxBookCtrlBase* bookCtrl);
- /**
- Sets the inner sizer that contains the book control and button sizer.
-
- You will normally not need to use this.
- */
- void SetInnerSizer(wxSizer* sizer);
-
/**
You can customize the look and feel of the dialog by setting the sheet style.
It is a bit list of the ::wxPropertySheetDialogFlags values.