mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 06:47:28 +01:00
LCL: TMemo: Fixed disappearance of TMemo after setting borderstyle. Issue #31586
git-svn-id: trunk@54509 -
This commit is contained in:
parent
1352581471
commit
48d7ba4e4c
@ -4126,6 +4126,7 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TWinControl.SetBorderStyle(NewStyle: TBorderStyle);
|
||||
begin
|
||||
if FBorderStyle = NewStyle then Exit;
|
||||
FBorderStyle := NewStyle;
|
||||
if HandleAllocated then
|
||||
TWSWinControlClass(WidgetSetClass).SetBorderStyle(Self, NewStyle);
|
||||
|
||||
@ -361,6 +361,8 @@ end;
|
||||
class procedure TWin32WSWinControl.SetBorderStyle(const AWinControl: TWinControl; const ABorderStyle: TBorderStyle);
|
||||
begin
|
||||
RecreateWnd(AWinControl);
|
||||
if AWinControl.HandleObjectShouldBeVisible then
|
||||
AWinControl.HandleNeeded;
|
||||
end;
|
||||
|
||||
class procedure TWin32WSWinControl.SetChildZPosition(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user