summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-09-30 07:15:11 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-10-05 18:51:28 -0500
commit5681c616dbdd3c8cb33969d462ad60d78967ebce (patch)
tree4b634d0057d089e70898df191a1235e84f3d5cc5
parent924f3018b2d0bb1962c80bf1f90249c81780c6f9 (diff)
accfixes2: ButtonDialog: adjust Z-Order for own buttons
before showing the dialog
-rw-r--r--vcl/source/window/btndlg.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx
index 702f28c812a3..15bb5732e64f 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -244,6 +244,15 @@ void ButtonDialog::StateChanged( StateChangedType nType )
{
ImplPosControls();
+ // IA2 CWS: Own buttons are inserted in CTOR, custom buttons later. Own buttons should be last buttons in Z-Order.
+ for ( btn_iterator it = maItemList.begin(); it != maItemList.end(); ++it)
+ {
+ if ( it->mpPushButton && it->mbOwnButton )
+ {
+ it->mpPushButton->SetZOrder(0, WINDOW_ZORDER_LAST);
+ }
+ }
+
// Set focus on default button.
if ( mnFocusButtonId != BUTTONDIALOG_BUTTON_NOTFOUND )
{