mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 18:49:19 +02:00
fix improper windows class selected for bsDialog border
git-svn-id: trunk@20783 -
This commit is contained in:
parent
377ffa4db8
commit
a9c170f28d
@ -1123,10 +1123,17 @@ begin
|
|||||||
NewWindowClass := kDocumentWindowClass;
|
NewWindowClass := kDocumentWindowClass;
|
||||||
Attributes := kWindowInWindowMenuAttribute;
|
Attributes := kWindowInWindowMenuAttribute;
|
||||||
end;
|
end;
|
||||||
|
case (LCLObject as TCustomForm).BorderStyle of
|
||||||
|
bsDialog:
|
||||||
|
begin
|
||||||
|
NewWindowClass := kMovableModalWindowClass;
|
||||||
|
Attributes := 0;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
Attributes := Attributes or
|
Attributes := Attributes or
|
||||||
GetBorderWindowAttrs((LCLObject as TCustomForm).BorderStyle,
|
GetBorderWindowAttrs((LCLObject as TCustomForm).BorderStyle,
|
||||||
(LCLObject as TCustomForm).BorderIcons);
|
(LCLObject as TCustomForm).BorderIcons);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//DebugLn('TCarbonWindow.CreateWidget ' + DbgS(ParamsToCarbonRect(AParams)));
|
//DebugLn('TCarbonWindow.CreateWidget ' + DbgS(ParamsToCarbonRect(AParams)));
|
||||||
|
Loading…
Reference in New Issue
Block a user