mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:39:44 +02:00
win32: spin edit: fix placement for bsNone
git-svn-id: trunk@51975 -
This commit is contained in:
parent
33013ddac8
commit
0c8bbd0f25
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user