projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4e025aa
)
Under wxMotif, default buttons are bigger than other buttons,
author
Mattia Barbon
<mbarbon@cpan.org>
Sun, 28 Aug 2005 07:55:43 +0000
(07:55 +0000)
committer
Mattia Barbon
<mbarbon@cpan.org>
Sun, 28 Aug 2005 07:55:43 +0000
(07:55 +0000)
hence Realize() must be called after default button has been set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35327
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/dlgcmn.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/dlgcmn.cpp
b/src/common/dlgcmn.cpp
index 8ac52135d935b862c03b886d9856ba450e1a0b10..d41cd25f739fd2c20086fec584a1abd07709019e 100644
(file)
--- a/
src/common/dlgcmn.cpp
+++ b/
src/common/dlgcmn.cpp
@@
-336,8
+336,6
@@
wxStdDialogButtonSizer *wxDialogBase::CreateStdDialogButtonSizer( long flags )
sizer->AddButton(help);
}
- sizer->Realize();
-
if (flags & wxNO_DEFAULT)
{
if (no)
@@
-359,12
+357,14
@@
wxStdDialogButtonSizer *wxDialogBase::CreateStdDialogButtonSizer( long flags )
yes->SetFocus();
}
}
-
+
if (flags & wxOK)
SetAffirmativeId(wxID_OK);
else if (flags & wxYES)
SetAffirmativeId(wxID_YES);
+ sizer->Realize();
+
return sizer;
}