#endif
);
- dialog.SetDirectory(wxGetHomeDir());
dialog.CentreOnParent();
+ dialog.SetDirectory(wxGetHomeDir());
if (dialog.ShowModal() == wxID_OK)
{
{
wxDialog dlg(this, wxID_ANY, _T("Dialog centered on screen"),
wxDefaultPosition, wxSize(200, 100));
- new wxButton(&dlg, wxID_OK, _T("Close"), wxPoint(10, 10));
+ (new wxButton(&dlg, wxID_OK, _T("Close")))->Centre();
dlg.CentreOnScreen();
dlg.ShowModal();
}
{
wxDialog dlg(this, wxID_ANY, _T("Dialog centered on parent"),
wxDefaultPosition, wxSize(200, 100));
- new wxButton(&dlg, wxID_OK, _T("Close"), wxPoint(10, 10));
+ (new wxButton(&dlg, wxID_OK, _T("Close")))->Centre();
dlg.CentreOnParent();
dlg.ShowModal();
}
m_imageList = NULL;
Create(win, wxID_ANY, _("Preferences"), wxDefaultPosition, wxDefaultSize,
- wxDEFAULT_DIALOG_STYLE| (int)wxPlatform().IsNot(wxWinCE, resizeBorder)
+ wxDEFAULT_DIALOG_STYLE| (int)wxPlatform::IfNot(wxWinCE, resizeBorder)
/*
#ifndef __WXWINCE__
|resizeBorder
// If using a toolbook, also follow Mac style and don't create buttons
if (!useToolBook)
- CreateButtons(wxOK|wxCANCEL| (int)wxPlatform().IsNot(wxWinPocketPC, wxHELP)
+ CreateButtons(wxOK|wxCANCEL| (int)wxPlatform::IfNot(wxWinPocketPC, wxHELP)
/*
#ifndef __POCKETPC__
|wxHELP