mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:59:22 +02:00
Merged revision(s) 65448 #531d436ce1 from trunk:
DockedFormEditor: Check for WidgetSet LCLWin32 and LCLWin64. Issue #39222. ........ git-svn-id: branches/fixes_2_2@65451 -
This commit is contained in:
parent
818acbe9bf
commit
477277baf2
@ -121,7 +121,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
case Msg.msg of
|
case Msg.msg of
|
||||||
{$IFDEF Win32}
|
{$IF Defined(LCLWin32) or Defined(LCLWin64)}
|
||||||
// we need to correct ActiveEditor to right form
|
// we need to correct ActiveEditor to right form
|
||||||
// this code works correctly on Windows platform
|
// this code works correctly on Windows platform
|
||||||
// (is necessery for selecting controls after form resizing).
|
// (is necessery for selecting controls after form resizing).
|
||||||
|
@ -135,7 +135,7 @@ end;
|
|||||||
function TFormAccess.ClientOffset: TPoint;
|
function TFormAccess.ClientOffset: TPoint;
|
||||||
begin
|
begin
|
||||||
Result := Point(0, 0);
|
Result := Point(0, 0);
|
||||||
{$IFDEF Win32}
|
{$IF Defined(LCLWin32) or Defined(LCLWin64)}
|
||||||
Result.X := GetSystemMetrics(SM_CXSIZEFRAME);
|
Result.X := GetSystemMetrics(SM_CXSIZEFRAME);
|
||||||
Result.Y := GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYCAPTION);
|
Result.Y := GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYCAPTION);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user