mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
IDE: Add package name to hints for component palette icons.
git-svn-id: trunk@59081 -
This commit is contained in:
parent
eee5c0d422
commit
0d01822dfb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user