ToolTip Owner Draw

I have created a ToolTip class and set the OwnerDraw property to true.
I have hooked the Draw and Popup events and it is working ok.
The content that I am rendering contains graphics and text. I'm just wondering why the only way to popup a ToolTip forces you to specify some text, for example:
_calloutToolTip.SetToolTip( _mainPicture.Renderer, "dummy" );

All the overloads for Show also expect text.

Is there anyway round this



Answer this question

ToolTip Owner Draw

  • mstcrow5429

    I had the same issue with ToolTip, and resorted to ownerDraw, also. In my case, I wanted to do formatted, color highlighted text, rather than simple text.

    Answers from this board and others are:

    1. OwnerDraw,

    2. Inherit/extend/compose with ToolTip (or new control entirely), or

    3. Look around for third-party version that may suit you needs better.

    As for why ToolTip only supports simple string, guess the designer (of ToolTip as well as its underlying native control ) intended it for simple "tip" pop-up, not an elaborate rich pop-up.


  • ro88o

    No real problem here, just a little bit backwards with the API. A Show() overload with no text would be a bit more intuitive.

    Maybe for the next version of the product will create a Component (SmartTag - like the Outlook notifier) to encapsulate a tool tip / context menu. Went with the tooltip this time because we're not a Control factory :)


  • ToolTip Owner Draw