Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Tooltip can contain data formatted in a table?

Tooltip can contain data formatted in a table?

New Discussion
Vern
Vern asked on Jun 12, 2009 3:30 PM

I am very new to the tooltip functionality. Is it possible to have some data formatted as table (rows and columns) displayed inside a tooltip? I want to show some details using the tooltip?

Sign In to post a reply

Replies

  • 0
    Mike Saltzman
    Mike Saltzman answered on Nov 3, 2008 4:29 PM

    There's no built-in table functionality in the tooltip. 

    One thing you could do is dynamically draw an image in code and use that are you tooltip. Or you could possibly use a formatted tooltip with tabs. 

    • 0
      Vern
      Vern answered on Nov 4, 2008 1:58 AM

      [quote user=”[Infragistics] Mike Saltzman”]One thing you could do is dynamically draw an image in code and use that are you tooltip.[/quote]

       

      You mean to say “draw an image in code and use that AS YOUR tooltip”? So you are saying the contents of the tooltip would be painted by me and then rendered as the tooltip?

      [quote user=”[Infragistics] Mike Saltzman”]Or you could possibly use a formatted tooltip with tabs.  [/quote]

      I am sorry to ask you what may be a basic question but where does one access formatting properties for a tooltip? Is that in toolmanager?

      Reading another post where the developer wanted a formatted tooltip that he can click on, you recommend use of UltraDeskTopAlert. Can that control show like a tooltip i.e. box with a line pointing to the grid cell? Is that advice applicable to me where I would like to show a few rows and columsn of data?

       

      Thanks!

      • 0
        Mike Saltzman
        Mike Saltzman answered on Nov 4, 2008 4:17 PM

        [quote user=”vrn”]You mean to say “draw an image in code and use that AS YOUR tooltip”? So you are saying the contents of the tooltip would be painted by me and then rendered as the tooltip?[/quote]

        Yes, the UltraToolTipManager tooltips can display text and / or images. So you could create a Bitmap in code and draw whatever you want on it and use it as your tooltip.

        [quote user=”vrn”]I am sorry to ask you what may be a basic question but where does one access formatting properties for a tooltip? Is that in toolmanager?[/quote]

        It’s on the extender property provided to controls by the UltraToolTipManager. There is a ToolTipText property, but there is also a ToolTipTextFormatted property. The formatted text doesn’t support tables, so I doubt it will meet your needs, but it has support for fonts and colors and embedded images sort’ve like html or rich text.

        [quote user=”vrn”]Reading another post where the developer wanted a formatted tooltip that he can click on, you recommend use of UltraDeskTopAlert. Can that control show like a tooltip i.e. box with a line pointing to the grid cell? Is that advice applicable to me where I would like to show a few rows and columsn of data?[/quote]

        The UltraDeskTopAlert is rectangular as far as I know. It doesn’t have a callout or a balloontip like the tooltip. And it also does not support tables. It is clickable and can support links, though.

      • 0
        Vern
        Vern answered on Jun 11, 2009 10:55 PM

         

        I asked

        [quote user="vrn"]You mean to say "draw an image in code and use that AS YOUR tooltip"? So you are saying the contents of the tooltip would be painted by me and then rendered as the tooltip?[/quote] 

        You replied

        [quote user="[Infragistics] Mike Saltzman"] Yes, the UltraToolTipManager tooltips can display text and / or images. So you could create a Bitmap in code and draw whatever you want on it and use it as your tooltip. [/quote]

         

        I have never created a Bitmap programmatically. So I may be asking something very basic. For each UltraGrid cell, there is a collection of  DataRows I have. Some of the DataColumns of those DataRows need to be rendered in a tabular fashion and show on the tooltip as user hovers over the GridCell.

        This Bitmap, in addition to the table needs to show some notes above/below the table. Easy to do? Any resource you can suggest?

        Thanks!

         

         

      • 0
        Mike Saltzman
        Mike Saltzman answered on Jun 12, 2009 3:30 PM

        Creating a Bitmap in code is simply a matter of declaring a varialbe. To draw onto it, you use a Graphics object. The Graphics object has all sorts of methods for drawing text, lines, rectangles, etc.

        Check out Microsoft's documentation on the Graphics class and it's methods.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Vern
Favorites
0
Replies
5
Created On
Jun 12, 2009
Last Post
16 years, 8 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Jun 12, 2009 3:30 PM

Last activity on

Feb 23, 2026 5:42 PM