User defined component - how to set tooltip on Component Palette?
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开发者_如何学Go -the one that shows if I hover over the Component Palette at deign time?
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)
orTButton(Controls.TControl)
D2010:
Name: Classname
Unit: UnitName
Package: PackageName
like
Name: TButton
Unit: StdCtrls
Package: dclstd140.bpl
精彩评论