- bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
-
- wxBoxSizer *box = NULL;
-
- // If we have a PDA screen, put yes/no button over
- // all other buttons, otherwise on the left side.
- if (is_pda)
- box = new wxBoxSizer( wxVERTICAL );
- else
- box = new wxBoxSizer( wxHORIZONTAL );
-
- wxBoxSizer *inner_yes_no = NULL;
-
- // Only create sizer containing yes/no
- // if it is actually required
- if ( (flags & wxYES_NO) != 0 )
- {
- inner_yes_no = new wxBoxSizer( wxHORIZONTAL );
- box->Add( inner_yes_no, 0, wxBOTTOM, 10 );
- }
-
- wxBoxSizer *inner_rest = new wxBoxSizer( wxHORIZONTAL );
- box->Add( inner_rest, 0, 0, 0 );
-
-#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;