mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
IDE, select the first node initially in ComponentList. Part of issue #26035.
git-svn-id: trunk@44916 -
This commit is contained in:
parent
c2fa4b3ac9
commit
847147250b
@ -115,6 +115,8 @@ begin
|
||||
PageControl.ActivePage := TabSheetList;
|
||||
FindAllLazarusComponents;
|
||||
UpdateComponentSelection(nil);
|
||||
with ListTree do
|
||||
Selected := Items.GetFirstNode;
|
||||
TreeFilterEd.InvalidateFilter;
|
||||
IDEComponentPalette.AddHandlerComponentAdded(@ComponentWasAdded);
|
||||
end;
|
||||
@ -130,7 +132,7 @@ end;
|
||||
|
||||
procedure TComponentListForm.FormShow(Sender: TObject);
|
||||
var
|
||||
ParentParent: TWinControl;
|
||||
ParentParent: TWinControl; // Used for checking if the form is anchored.
|
||||
begin
|
||||
ParentParent := Nil;
|
||||
if Assigned(Parent) then
|
||||
@ -207,7 +209,7 @@ begin
|
||||
end;
|
||||
|
||||
procedure TComponentListForm.UpdateComponentSelection(Sender: TObject);
|
||||
//Apply the filter and fill the three tabsheets
|
||||
// Fill the three tabsheets.
|
||||
var
|
||||
AComponent: TRegisteredComponent;
|
||||
AClassName: string;
|
||||
|
Loading…
Reference in New Issue
Block a user