|
|
|
|
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.
Subject |
Author |
Date |
|
Offer Har
|
Sep 4, 2008 - 1:05 PM
|
Hi, I would like to display an edit button in a grid cell only when the cell is hovered - is this possible? Thanks
Ron.
|
|
Technical Support
|
Sep 24, 2008 - 5:02 AM
|
|
|
Technical Support
|
Sep 5, 2008 - 1:53 PM
|
You can find a number of grids with hovered buttons in the SimpleGrids sample. Please let us know if there is any that you are looking for?
|
|
Offer Har
|
Sep 5, 2008 - 5:06 PM
|
Dear Support, I tried to get into the code there, but it’s very hard to understand what is going on there... Can you please give me some guidelines as to how to do the following: I have a cell, that when hovered I want to display a button in it, when not hovered, it should not display that button. Thanks,
Ron.
|
|
Offer Har
|
Sep 5, 2008 - 3:20 PM
|
OK - great - saw it in the simple grids. Will try it out.
|
|
Offer Har
|
Sep 5, 2008 - 2:29 PM
|
What I mean is that the button is displayed only when hovered over the cell. Is this possible?
|
|
Technical Support
|
Sep 6, 2008 - 1:21 PM
|
There is a set of __EGWS_BSE_BUTTONS_IN_*** styles which should be used with CExtGridWnd::BseModifyStyle() / CExtGridWnd::BseGetStyle() methods. You should apply only the __EGWS_BSE_BUTTONS_IN_HOVERED_CELL style.
|
|
Offer Har
|
Sep 24, 2008 - 8:58 AM
|
Dear Support, After comparing with your test application, I found I was missing a lot of stuff.., for the futrue users, this is what you need to add to the grid/tree objects:
m_tree.BseModifyStyle(__EGWS_BSE_BUTTONS_IN_HOVERED_CELL, __EGWS_BSE_BUTTONS_PERSISTENT);
m_tree.HoverEventsSet();
m_tree.HoverHighlightSet( true, false, false, false, false, false ); And then it will work...  Thanks for you rhelp.
|
|
Offer Har
|
Sep 6, 2008 - 7:15 PM
|
I added this line:
BseModifyStyle(__EGWS_BSE_BUTTONS_IN_HOVERED_CELL);
And added :
ModifyStyle(__EGCS_BUTTON_ELLIPSIS); To my cells. But the ellipsis buttons appear all the time, regardless if the cell is hovered or not. I would like to add that my grid is actually a tree grid. What is wrong? Is this supported in tree grids? Is there a bug? Thanks,
Ron.
|
|