diff options
-rw-r--r-- | vcl/source/window/btndlg.cxx | 9 |
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 ) { |