mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 05:50:36 +02:00
fix borderstyle/borderbuttons
git-svn-id: trunk@6278 -
This commit is contained in:
parent
2cf1c1b556
commit
e087248a2d
@ -183,17 +183,15 @@ var
|
||||
BorderIcons: TBorderIcons;
|
||||
begin
|
||||
Result := 0;
|
||||
if not (AForm.BorderStyle in [bsNone, bsDialog, bsToolWindow]) then
|
||||
BorderIcons := AForm.BorderIcons;
|
||||
if biSystemMenu in BorderIcons then
|
||||
Result := Result or WS_SYSMENU;
|
||||
if AForm.BorderStyle in [bsNone, bsSingle, bsSizeable] then
|
||||
begin
|
||||
BorderIcons := AForm.BorderIcons;
|
||||
if biSystemMenu in BorderIcons then
|
||||
begin
|
||||
Result := Result or WS_SYSMENU;
|
||||
if biMinimize in BorderIcons then
|
||||
Result := Result or WS_MINIMIZEBOX;
|
||||
if biMaximize in BorderIcons then
|
||||
Result := Result or WS_MAXIMIZEBOX;
|
||||
end;
|
||||
if biMinimize in BorderIcons then
|
||||
Result := Result or WS_MINIMIZEBOX;
|
||||
if biMaximize in BorderIcons then
|
||||
Result := Result or WS_MAXIMIZEBOX;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user