SuperToolTip and FlexFGrid

WinForms

ComponentOne's WinForms controls

SuperToolTip and FlexFGrid

  • rated by 0 users
  • This post has 1 Reply |
  • 1 Follower
  • I am trying to get a SuperToolTip to show in a FlexGrid as the mouse moves over. But I have two problems:

     1. The tooltip is invisible until I move it over the scrollbar and then the content appears.

    2. I can not get the graphic to show in the tooltip, despite it being in the resource file.

    The code is as follows:

    public partial class frmGridToolTips : Form

    {

    // html template for super tooltip

    private string _tip =@"<table><tr>

    <td><parm><img src='resource://folder.ico'></parm>

    <td><b><parm>This is a SuperTooltip</parm></b>

    </table>

    <parm><hr noshade size=1 style='margin:2' color=Darker></parm>

    <div style='margin:1 12'><parm>

    This tooltip is associated with cell (row,col).<br>

    You can show it as a balloon or as a regular<br>

    tooltip.

    </parm></div>

    <parm><hr noshade size=1 style='margin:2' color=Darker></parm>

    <table><tr>

    <td><parm></parm>

    <td><b><parm>enjoy your SuperTooltip today!</parm></b>

    </table>"
    ;public frmGridToolTips()

    {

    InitializeComponent();

    }

    private void Form1_Load(object sender, EventArgs e)

    {

    this.c1SuperTooltip1.IsBalloon = true;

    }

    private void fg_MouseMove(object sender, MouseEventArgs e)

    {

    c1SuperTooltip1.SetToolTip(fg, _tip);

    }

    }

    }

  • Hello
     
    It seems to be working fine with the following builds of C1FlexGrid and C1SuperToolTip:
     
     
     
    Regards
    Dave
    <grnr_rchrd> wrote in message news:202962@10.0.1.98...

    I am trying to get a SuperToolTip to show in a FlexGrid as the mouse moves over. But I have two problems:

     1. The tooltip is invisible until I move it over the scrollbar and then the content appears.

    2. I can not get the graphic to show in the tooltip, despite it being in the resource file.

    The code is as follows:

    public partial class frmGridToolTips : Form

    {

    // html template for super tooltip

    private string _tip =@"<table><tr>

    <td><parm><img src='resource://folder.ico'></parm>

    <td><b><parm>This is a SuperTooltip</parm></b>

    </table>

    <parm><hr noshade size=1 style='margin:2' color=Darker></parm>

    <div style='margin:1 12'><parm>

    This tooltip is associated with cell (row,col).<br>

    You can show it as a balloon or as a regular<br>

    tooltip.

    </parm></div>

    <parm><hr noshade size=1 style='margin:2' color=Darker></parm>

    <table><tr>

    <td><parm></parm>

    <td><b><parm>enjoy your SuperTooltip today!</parm></b>

    </table>"
    ;public frmGridToolTips()

    {

    InitializeComponent();

    }

    private void Form1_Load(object sender, EventArgs e)

    {

    this.c1SuperTooltip1.IsBalloon = true;

    }

    private void fg_MouseMove(object sender, MouseEventArgs e)

    {

    c1SuperTooltip1.SetToolTip(fg, _tip);

    }

    }

    }



    http://helpcentral.componentone.com/cs/forums/p/74660/202962.aspx#202962

Page 1 of 1 (2 items)