View previous topic :: View next topic |
Author |
Message |
mutouaa
Joined: 07 Nov 2007 Posts: 24
|
Posted: Wed Apr 06, 2011 9:33 am Post subject: Hide ToolTip in TypeEditor |
|
|
Hello Infralution Group,
Here I met a tooltip problem in a cell with TypeEditor.
in my virtual tree, a column is defined as an Icon column that shows only TypeEditor. because this Icon column width is very small, so the ToolTip always shows the binding value ("Ture" or "False").
Is it possible not to show the ToolTip?
Thank you in advance! |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Apr 06, 2011 10:53 pm Post subject: |
|
|
To actually turn the tooltip off altogether is a bit harder then it probably should be. The problem is that if the CellData.ToolTip property is set to null or empty then the tree will display by default the Text for the cell as the tooltip (if the text doesn't fit). The easiest solution would still display the tooltip but display something more meaningful for your application by explicitly setting the CellBinding or CellData ToolTip property.
If you really want to get rid of the tooltip altogether then you need to create a custom CellWidget (see the section in help on custom widgets) and then override the CellWidget.GetToolTipText method to return null. Obviously you would only use this custom CellWidget for columns that you don't want to have tooltips.
We will fix the behaviour in the next minor release of Virtual Tree so that if ShowText is false for a cell then the ToolTip is not displayed unless AlwaysDisplayToolTipis true. _________________ Infralution Support |
|
Back to top |
|
|
|