+#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)