Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Tooltips for grid cells. Collapse All
Subject Author Date
David Fox Nov 20, 2006 - 5:44 AM

Hi!

I am trying to add tooltips for grid cells, but they are not working. So, what I do:
1. I am using derived cell type(my own), and then overload OnGetToolTipText, and return the tooltip text.
2. I am modifying style of the grid: m_GListGrid.SiwModifyStyle( (__ESIS_STV_ITEM | __EGBS_EX_CELL_TOOLTIPS), 0, true );
3. I set m_GListGrid.HoverEventsSet( true, true );

Unfortunately there is no any tooltip when I am hovering my mouse over the cell. What I have to do?

Fabien Masson Dec 22, 2006 - 1:10 AM

Thanks for your answer.

By the way, you have already almost all code for doing it.
We simply derivated one CExtGridCell, add the string tooltip & methods, plus override OnGetToolTipText virtual method and it works like a charm.

Is it by design (memory constraint) that you didn’t want to store this additionnal string directly in CExtGridCell ?
Or is it because there so many differents needs that my solution is not as "a general" one ?

Regards, Fabien.

Fabien Masson Dec 20, 2006 - 4:05 AM

Dear Support,

Have you already released this feature ?
I was about to implemente it by myself but I always prefer your implementation.

Best regards,
Fabien.

Technical Support Dec 21, 2006 - 12:41 PM

This is not supported in the current version. We will add it in one of the next versions.

Technical Support Nov 20, 2006 - 12:21 PM

Please note you should disable the contents pop-up window for grid cells first. Such a tooltip-like window shows the cell contents for any cell that is partially visible:

   m_wndGrid.EnableTooltips(
            true,
            true,
            true,
            true,
            true
            );
      m_wndGrid.EnableExpanding(
            false,
            false,
            false,
            false,
            false
            );
Following requests from our customers, we are going to implement a method (TooltipTextSet()) which can be used for setting a custom tooltip. We will notify you when it is ready.