Merged revision(s) 59081 #0d01822dfb from trunk:

IDE: Add package name to hints for component palette icons.
........

git-svn-id: branches/fixes_2_0@59099 -
This commit is contained in:
maxim 2018-09-20 22:39:08 +00:00
parent 51abe9c120
commit 4d2a63f942

View File

@ -443,7 +443,9 @@ begin
Pal.fComponentButtons[CompCN] := Btn;
Btn.Name := CompPaletteCompBtnPrefix + aButtonUniqueName + CompCN;
// Left and Top will be set in ReAlignButtons.
Btn.SetBounds(Btn.Left,Btn.Top,aScrollBox.Scale96ToForm(ComponentPaletteBtnWidth),aScrollBox.Scale96ToForm(ComponentPaletteBtnHeight));
Btn.SetBounds(Btn.Left, Btn.Top,
aScrollBox.Scale96ToForm(ComponentPaletteBtnWidth),
aScrollBox.Scale96ToForm(ComponentPaletteBtnHeight));
Btn.Images := aComp.Images;
Btn.ImageIndex := aComp.ImageIndex;
Btn.GroupIndex := 1;
@ -453,7 +455,8 @@ begin
Btn.OnDblClick := @Pal.ComponentBtnDblClick;
Btn.OnMouseWheel := @Pal.OnPageMouseWheel;
Btn.ShowHint := EnvironmentOptions.ShowHintsForComponentPalette;
Btn.Hint := CompCN + sLineBreak + '(' + aComp.ComponentClass.UnitName + ')';
Btn.Hint := CompCN + sLineBreak +
'(' + aComp.ComponentClass.UnitName+', '+aComp.PkgFile.LazPackage.Name + ')';
Btn.PopupMenu:=Pal.PopupMenu;
{$IFDEF VerboseComponentPalette}
if aComp.RealPage.PageName = CompPalVerbPgName then