Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hide ToolTip in TypeEditor

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
mutouaa



Joined: 07 Nov 2007
Posts: 24

PostPosted: Wed Apr 06, 2011 9:33 am    Post subject: Hide ToolTip in TypeEditor Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Apr 06, 2011 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group