win32: spin edit: fix placement for bsNone

git-svn-id: trunk@51975 -
This commit is contained in:
ondrej 2016-03-17 10:55:10 +00:00
parent 33013ddac8
commit 0c8bbd0f25

View File

@ -278,7 +278,9 @@ begin
}
GetWindowRect(UpDown, @R);
UpDownWidth := R.Right - R.Left;
if (WindowsVersion >= wvXP) and ThemeServices.ThemesEnabled then
if (AWinControl as TCustomFloatSpinEdit).BorderStyle = bsNone then
BorderWidth := 0
else if (WindowsVersion >= wvXP) and ThemeServices.ThemesEnabled then
BorderWidth := GetSystemMetrics(SM_CXBORDER)
else
BorderWidth := GetSystemMetrics(SM_CXEDGE);