IDE, select the first node initially in ComponentList. Part of issue #26035.

git-svn-id: trunk@44916 -
This commit is contained in:
juha 2014-05-04 22:32:47 +00:00
parent c2fa4b3ac9
commit 847147250b

View File

@ -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;