mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 20:19:29 +02:00
lcl: TCustomForm.GetMonitor consider poDefaultPosOnly
This commit is contained in:
parent
cf9253d7a7
commit
db88c83b22
@ -2406,7 +2406,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
// first time showing, check Position and DefaultMonitor
|
// first time showing, check Position and DefaultMonitor
|
||||||
case Position of
|
case Position of
|
||||||
poDefault:
|
poDefault, poDefaultPosOnly:
|
||||||
Result := Screen.MonitorFromWindow(Handle, mdNull);
|
Result := Screen.MonitorFromWindow(Handle, mdNull);
|
||||||
poDesigned, poDefaultSizeOnly:
|
poDesigned, poDefaultSizeOnly:
|
||||||
Result := Screen.MonitorFromPoint(point(Left,Top));
|
Result := Screen.MonitorFromPoint(point(Left,Top));
|
||||||
|
Loading…
Reference in New Issue
Block a user