diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 13:07:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 13:07:14 +0000 |
commit | 44cdad55036063f9ec29671da02863a07c88d381 (patch) | |
tree | 7a96d62d57e53d00ed63efa44753ba73fb67edb9 /vcl/source/control | |
parent | fa63103fdb277ef251e61353bce6de2a729b05d2 (diff) |
INTEGRATION: CWS aquavcl02 (1.23.264); FILE MERGED
2007/07/11 10:50:46 pjanik 1.23.264.2: RESYNC: (1.23-1.24); FILE MERGED
2007/07/09 09:44:51 isma87 1.23.264.1: add native spinbox
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/spinfld.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index a8cbd6570ece..1808c57e9035 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -4,9 +4,9 @@ * * $RCSfile: spinfld.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: hr $ $Date: 2007-06-27 20:08:36 $ + * last change: $Author: hr $ $Date: 2007-08-03 14:07:14 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -134,6 +134,14 @@ BOOL ImplDrawNativeSpinfield( Window *pWin, const SpinbuttonValue& rSpinbuttonVa Point aPt; Size aSize( pBorder->GetOutputSizePixel() ); // the size of the border window, i.e., the whole control + Region aBound, aContent; + Region aNatRgn( Rectangle( aPt, aSize ) ); + if( pBorder->GetNativeControlRegion(CTRL_SPINBOX, PART_ENTIRE_CONTROL, + aNatRgn, 0, aControlValue, rtl::OUString(), aBound, aContent) ) + { + aSize = aContent.GetBoundRect().GetSize(); + } + Region aRgn( Rectangle( aPt, aSize ) ); bNativeOK = pBorder->DrawNativeControl( CTRL_SPINBOX, PART_ENTIRE_CONTROL, aRgn, CTRL_STATE_ENABLED, aControlValue, rtl::OUString() ); |