mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:56:12 +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;
|
||||
Attributes := kWindowInWindowMenuAttribute;
|
||||
end;
|
||||
|
||||
case (LCLObject as TCustomForm).BorderStyle of
|
||||
bsDialog:
|
||||
begin
|
||||
NewWindowClass := kMovableModalWindowClass;
|
||||
Attributes := 0;
|
||||
end;
|
||||
end;
|
||||
Attributes := Attributes or
|
||||
GetBorderWindowAttrs((LCLObject as TCustomForm).BorderStyle,
|
||||
(LCLObject as TCustomForm).BorderIcons);
|
||||
|
||||
end;
|
||||
|
||||
//DebugLn('TCarbonWindow.CreateWidget ' + DbgS(ParamsToCarbonRect(AParams)));
|
||||
|
Loading…
Reference in New Issue
Block a user