summaryrefslogtreecommitdiffstats
path: root/svtools/source/control/filectrl.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <frank.schoenheit@sun.com>2009-10-23 12:10:07 +0200
committerFrank Schönheit <frank.schoenheit@sun.com>2009-10-23 12:10:07 +0200
commitb14f33317528b0d3b44f5d24fbfb15a26cebb531 (patch)
tree41b2427caa7f0bddf3ea1548e33da035edd9da84 /svtools/source/control/filectrl.cxx
parentCreate DEV300_m61 milestone tag from trunk@276697 (diff)
downloadcore-b14f33317528b0d3b44f5d24fbfb15a26cebb531.tar.gz
core-b14f33317528b0d3b44f5d24fbfb15a26cebb531.zip
#i106184# introduce a 'VerticalAlign' property for edit-like form controls
Diffstat (limited to 'svtools/source/control/filectrl.cxx')
-rw-r--r--svtools/source/control/filectrl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index d820dce097ed..f00cf45be0e6 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -78,6 +78,9 @@ WinBits FileControl::ImplInitStyle( WinBits nStyle )
maButton.SetStyle( (maButton.GetStyle()|WB_NOTABSTOP)&(~WB_TABSTOP) );
}
+ const WinBits nAlignmentStyle = ( WB_TOP | WB_VCENTER | WB_BOTTOM );
+ maEdit.SetStyle( ( maEdit.GetStyle() & ~nAlignmentStyle ) | ( nStyle & nAlignmentStyle ) );
+
if ( !(nStyle & WB_NOGROUP) )
nStyle |= WB_GROUP;