const wxString& value,
long style,
const wxPoint& pos)
- : wxDialog(GetParentForModalDialog(parent),
+ : wxDialog(GetParentForModalDialog(parent, style),
wxID_ANY, caption, pos, wxDefaultSize,
wxDEFAULT_DIALOG_STYLE),
m_value(value)
#endif // wxUSE_VALIDATORS
// 3) buttons if any
- wxSizer *buttonSizer = CreateSeparatedButtonSizer(style & ButtonSizerFlags);
+ wxSizer *buttonSizer = CreateSeparatedButtonSizer(style & (wxOK | wxCANCEL));
if ( buttonSizer )
{
topsizer->Add(buttonSizer, wxSizerFlags(flagsBorder2).Expand());