C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

SuperToolTip and FlexFGrid

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 7
grnr_rchrd Posted: Mon, Mar 17 2008 4:57 PM

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);

}

}

}

Top 25 Contributor
Posts 666
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) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.