Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can I add tooltips to each table row? (Read 1831 times)
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Can I add tooltips to each table row?
Jul 1st, 2008 at 4:13pm
Print Post  
It would be useful for me to be able to display tooltips for each row in a TableNode, is there an easy way to do this?

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can I add tooltips to each table row?
Reply #1 - Jul 1st, 2008 at 5:57pm
Print Post  
Set the Tooltip of all cells in a row to the same value.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Re: Can I add tooltips to each table row?
Reply #2 - Jul 10th, 2008 at 1:42pm
Print Post  
Hi Stoyan,

Yes that does help, I should have spotted that myself.  Embarrassed

Having said that, what I would really like, is to have a "Cell Tip", rather than a "ToolTip".  What I mean is that I would like the cell to display an in-place tip window when the mouse is over it if the text is too big to fit in the cell, so that long text can be read without having to resize the column.

Do you have a method for doing this, or any suggestions for implementing it?

Thanks.

Brian
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can I add tooltips to each table row?
Reply #3 - Jul 10th, 2008 at 3:58pm
Print Post  
Hi Brian,

There aren't built-in tips of that kind, but you might implement ones by displaying a ShapeNode while the mouse pointer is over a cell, and hiding it when the mouse moves away. You could handle the DiagramView.MouseMove event, convert the mouse position to document coordinate using ClientToDoc, and find which cell is under the mouse using TableNode.CellFromPoint. You might also check the ColumnSpan property of cell - you could use it to temporarily make the cell under the mouse bigger.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Re: Can I add tooltips to each table row?
Reply #4 - Jul 10th, 2008 at 4:06pm
Print Post  
Thanks Stoyan, I'll give that a try.

Brian
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint