SourceEditorIntf: New methods to add custom panels to the SourceEditor-Window.

This commit is contained in:
Martin 2023-06-13 09:05:07 +02:00
parent b9c9bfec05
commit bd2b087fa7

View File

@ -6678,10 +6678,14 @@ end;
destructor TSourceEditorStatusPanel.Destroy;
begin
if (FSrcNotebook <> nil) and (FSrcNotebook.FStatusPanels <> nil) then
FSrcNotebook.FStatusPanels.Remove(Self);
if OnDestroy <> nil then
OnDestroy(Self);
if (FSrcNotebook <> nil) and (FSrcNotebook.FStatusPanels <> nil) then begin
FSrcNotebook.FStatusPanels.FreeObjects := False;
FSrcNotebook.FStatusPanels.Remove(Self);
FSrcNotebook.FStatusPanels.FreeObjects := True;
FreeAndNil(FPanel);
end;
inherited Destroy;
end;