Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
ToolTipFormattedText
posted

Hello,

I'm trying to give my tooltips a formatted look, so now I'm using the ToolTipTextFormatted-property after I set the ToolTipTextStyle-property of the ToolTipManager to ToolTipTextStyle.Formatted. We're also using the Office2007-look instead of the default balloon-style.

Now, I'm having some trouble formatting the text using the HTML-tags. This is an example text I want to format :

= Key User Admin + 
- Add/remove report presets
- Manage all user settings
- Full  access to other setting-screens

We don't want empty lines between the text lines and we also use a title in the balloon.

I used the tool 'UltraToolTips Basic Features' to test this. I entered the text as above and also added the title and set the manager-settings (see attached image). The example the tool gives me is 100% perfect, but I cannot see what FormattedText the tool produces to show the tooltip. Is there any way to auto create the FormattedText starting from a simple HTML-textbox like in the tool ? Or can I get the solution (f.e. zip-file) which comes with this tool ?

I already explored the following manual but I' just not getting there :-( : http://help.infragistics.com/NetAdvantage/WinForms/2012.1/CLR2.0/?page=WinTooltipManager.html

Another question : is there a way to show a tooltip on a disabled control ? Now, the tooltip doesn't show itself when hoovering the disabled control.

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello timdelma,

    Here is the solution in C-Sharp which you are requiring in your post, it is attached to this one.

    As to your second questions - this is epxected behavior since all the functionality is being disabled on the control.

    What I can think of, is to handle the 'MouseHover' event of the 'Form', check if the mouse cursor is in the coordinates of the disabled control's rectangle and then show the tooltip.

    Please keep in mind that this is a very unusual requirement, so this implementation or any other might not be very good.

    Basic Features CS.zip
Reply Children
No Data