mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 23:17:10 +01:00
Small fix for default form size on wince.
git-svn-id: trunk@14891 -
This commit is contained in:
parent
4551450205
commit
99c7c5e885
@ -296,13 +296,17 @@ begin
|
||||
|
||||
Simply using CM_USEDEFAULT produces a too large Height, which
|
||||
covers the menus. So the workarea size is detected (which ignores
|
||||
the Taskbar) and then the menu is subtracted from it }
|
||||
the Taskbar).
|
||||
|
||||
In some devices subtracting the menu size seams to work better, but
|
||||
others, if no menu is present, it's a big problem.
|
||||
}
|
||||
if (BorderStyle <> bsDialog) and (BorderStyle <> bsNone) then
|
||||
begin
|
||||
Left := WR.Left;
|
||||
Top := WR.Top;
|
||||
Height := WR.Bottom - WR.Top - GetSystemMetrics(SM_CYMENU)
|
||||
- GetSystemMetrics(SM_CXBORDER) * 2;
|
||||
Height := WR.Bottom - WR.Top;// - GetSystemMetrics(SM_CYMENU)
|
||||
//- GetSystemMetrics(SM_CXBORDER) * 2;
|
||||
Width := WR.Right - WR.Left;
|
||||
end
|
||||
else if (BorderStyle = bsDialog) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user