Jump to content
Software FX Community

Tooltip in data editor area


rajesh_sivan
 Share

Recommended Posts

Hi,

I am trying to display tooltips in the data editor area but I am not able to do that. The reason I need tooltips is because of I only show a truncated name in the rows to save some real estate. When the user hovers over this truncated data, I would like to show the tooltip with the full name.

Since I did not see a straight forward way from ChartFX, I tried creating my own tooltip, but it breifly displays in the beginning but then it stops displaying. Anybody who has done it before, please let me know how to do it. Is Annotatation balloon a way to do it? Any input will be greatly appreciated.

Thanks,

Rajesh

Link to comment
Share on other sites

Tooltips are not supported in the Data Editor. I can't think of any way of achieving this in Chart FX 6.2

I was able to do it using Chart FX for 7.0 (for VS 2005) but I needed some new API to obtain the absolute position as well as new functionality that allows me to identify the cell.

Here is the code I used in 7.0:

private void chart1_MouseMove (object sender,HitTestEventArgs e)

{

  e = chart1.HitTest(e.AbsoluteLocation.X,e.AbsoluteLocation.Y,true);

  if (e.HitType == HitType.DataGrid) {

  string senderName = (e.Object != null) ? e.Object.ToString() : string.Empty;    toolTip1.Show(string.Format("MouseMove: {0} - {1} ({2},{3})",e.HitType.ToString(),senderName,e.Series,e.Point),chart1);

  }

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...