0

So, I created a new component, derived from an existing TControl type.

When I installed it, it appeared on the Component Palette (is that what it's called) at the top of Delphi at design time, to allow me to add it to a form.

How do I change its tooltip text -the one that shows if I hover over the Component Palette at deign time?

Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
  • 1
    Possible duplicate (second question): http://stackoverflow.com/questions/3319276/delphi-non-visual-component-image – Sertac Akyuz Aug 19 '10 at 09:41
  • +1 for taking the trouble to search & post, thanks. But, please don't close it as dupe. It answers 1/2 of my question (the icon), but not the tooltip. – Mawg says reinstate Monica Aug 19 '10 at 11:47
  • 1
    You should probably just remove the second question. Stack Overflow works much better when there's only one question per post. – Rob Kennedy Aug 19 '10 at 13:48
  • Isn't the tool tip just the name of the component, but without the leading T? That's all it ever was in the versions I remember. – Rob Kennedy Aug 19 '10 at 14:43

1 Answers1

0

The tooltip is automatically build from the component characteristics; depending on the version of Delphi, it will be different:

  • D2007:
    ClassName(Unit.Ancestor Class).
    for example: TDataSource(Classes.TPersistent) or TButton(Controls.TControl)

  • D2010:

    Name: Classname
    Unit: UnitName
    Package: PackageName

like

Name: TButton
Unit: StdCtrls
Package: dclstd140.bpl
Francesca
  • 21,452
  • 4
  • 49
  • 90