git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32979
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxSizer *wxDialogBase::CreateButtonSizer( long flags )
{
+#ifdef __SMARTPHONE__
+ wxDialog* dialog = (wxDialog*) this;
+ if (flags & wxOK){
+ dialog->SetLeftMenu(wxID_OK);
+ }
+
+ if (flags & wxCANCEL){
+ dialog->SetRightMenu(wxID_CANCEL);
+ }
+
+ if (flags & wxYES){
+ dialog->SetLeftMenu(wxID_YES);
+ }
+
+ if (flags & wxNO){
+ dialog->SetLeftMenu(wxID_NO);
+ }
+ wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
+ return sizer;
+#else
return CreateStdDialogButtonSizer( flags );
+#endif
}
wxStdDialogButtonSizer *wxDialogBase::CreateStdDialogButtonSizer( long flags )