This project has moved and is read-only. For the latest updates, please go here.

Wanted: Shape.TooltipText

Oct 29, 2012 at 8:18 AM
Edited Oct 29, 2012 at 9:23 AM


Can you add TooltipText property to Shape class in future releases?

And, by the way, do you have any workaround that can be used currently?

[UPDATE] I've found "ToolTip_Popup" method in the Display class, but it's private and... not referenced from anywhere :)

Oct 29, 2012 at 11:16 AM

I will put the Shape.ToolTipText property on our 'wishes' list.

The implementation of showing the tooltip is completly up to the host application as the ToolTip component is not accessible from within the Display and the Display does not know whether there is a ToolTip component providing tooltips for it. The implementation is pretty straightforward:

  • Add a ToolTipText property to your shape types
  • Add a ToolTip component to your form
  • Handle the Tooltip.Popup event, determine the shape under the mouse (see ToolTip_Popup event handler) and replace the tooltip for the control with myToolTip.SetToolTip().
Oct 29, 2012 at 12:14 PM

Thank you!