-#if defined(__WXMSW__) || defined(__WXMAC__)
- static const int margin = 6;
-#else
- static const int margin = 10;
-#endif
-
- wxButton *ok = (wxButton *) NULL;
- wxButton *cancel = (wxButton *) NULL;
- wxButton *yes = (wxButton *) NULL;
- wxButton *no = (wxButton *) NULL;
-
- // always show an OK button, unless we have both YES and NO
- if ( (flags & wxYES_NO) != wxYES_NO )
- flags |= wxOK;
-
- if (flags & wxYES)
- {
- yes = new wxButton( this, wxID_YES, _("Yes"),wxDefaultPosition,wxDefaultSize,wxCLIP_SIBLINGS );
- inner_yes_no->Add( yes, 0, wxLEFT|wxRIGHT, margin );
- }
- if (flags & wxNO)
- {
- no = new wxButton( this, wxID_NO, _("No"),wxDefaultPosition,wxDefaultSize,wxCLIP_SIBLINGS );
- inner_yes_no->Add( no, 0, wxLEFT|wxRIGHT, margin );