mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 08:09:22 +02:00
win32: force showing of form close button in the design-time (even if BorderIcons and BorderStyle request to hide it)
git-svn-id: trunk@21753 -
This commit is contained in:
parent
e19f46701f
commit
eeba75a1a6
@ -234,7 +234,7 @@ var
|
|||||||
begin
|
begin
|
||||||
Result := 0;
|
Result := 0;
|
||||||
BorderIcons := AForm.BorderIcons;
|
BorderIcons := AForm.BorderIcons;
|
||||||
if biSystemMenu in BorderIcons then
|
if (biSystemMenu in BorderIcons) or (csDesigning in AForm.ComponentState) then
|
||||||
Result := Result or WS_SYSMENU;
|
Result := Result or WS_SYSMENU;
|
||||||
if GetDesigningBorderStyle(AForm) in [bsNone, bsSingle, bsSizeable] then
|
if GetDesigningBorderStyle(AForm) in [bsNone, bsSingle, bsSizeable] then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user