开发者

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) or TButton(Controls.TControl)

  • D2010:

    Name: Classname
    Unit: UnitName
    Package: PackageName

like

Name: TButton
Unit: StdCtrls
Package: dclstd140.bpl
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜