fix improper windows class selected for bsDialog border

git-svn-id: trunk@20783 -
This commit is contained in:
dmitry 2009-07-02 12:29:27 +00:00
parent 377ffa4db8
commit a9c170f28d

View File

@ -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)));