mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 02:00:30 +01:00
SourceEditorIntf: New methods to add custom panels to the SourceEditor-Window.
This commit is contained in:
parent
b9c9bfec05
commit
bd2b087fa7
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user