Using the Tooltip manager I have written a custom tooltip component for all our wingrid. There all the grids we have columns (Guid Type and others) where the column width is very small. When I mouse over a cell, the tooltip component triggers perfectly. But the Grid's tooltip is also trigger.
Eg: If I mouse over a cell where I have hidden a guid value and placed an image as a background, a tooltip pops up, expanding from the cell and displays the whole value of the cell. I want to capture this event and stop it.
This is actually becoming a bigger problem when we are bringing in text data types and it displays the tooltip through the component and grids tooltip with the data in the cell together.
I don't think that there is a specific event for cancelling the ToolTips. You can, however, set the TipStyleCell, TipStyleHeader, TipStyleRowConnector, and TipStyleScroll properties on the Override object to Hide if you don't want them to show.
-Matt
Matt,
Can you please provide me with some example code. I am unalbe to find reference to these objects in the grid.
I don't know if you would consider the display coming out of the cell as tooltip. The functionality only works when the column width is smaller than the size of the value. My project is too heavy and it will take fair amout of time for me to create an example. But I will try.
I understand that sample projects can be rather complex to produce. Perhaps if you can explain in more detail what are the tooltip is coming from I can try to narrow down the issue. From the screenshot, I can't really tell what is showing the ToolTip, though if it is in fact the cell's value that is being shown, the TipStyleCell should definitely be preventing it from being shown.
Easiest way to reproduce will be, creating a some data where the cell's value is larger in lengh than the column itself. Then when you mouse over, it will popup out and let you read the whole value.
I had tried this behavior by simply resizing my column to be smaller than the width of the data; setting the TipStyleCell to Hide prevented my tooltip from being shown. This is why I wasn't sure why the cell tooltip is being shown in your case, since the property worked on my end. What version are you using? Perhaps you should ensure that you have the latest hotfix.
I am using the v8.2.20082.1000. Regretably I can't upgrade to 8.3 becuase it was doing havoc to our application atleast the (web version). I have also gone ahead did the hotfix for 8.2.
Secondly I did get it working. Previously I was assigning the set action too early. After changing the location it is working fine.
Thanks.