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
|
Feb 20, 2008 - 9:45 AM
|
Dear Support,
I need to display an icon on a grid cell button - can this be done? If so, then how?
Thanks, Ron.
|
|
Offer Har
|
Feb 25, 2008 - 5:09 AM
|
|
|
Technical Support
|
Feb 25, 2008 - 4:52 AM
|
This means you should implement a completely custom painted version of the ellipsis button by overriding CExtGridCell::OnPaintButton() . Your method should invoke the parent class method and specify dwHelperPaintFlags|__EGCPF_NO_BUTTON_ELLIPSIS_DOTS in the dwHelperPaintFlags parameter. As a result, the default ellipsis button will be painted without dots. The next step is to draw an icon over it.
|
|
Offer Har
|
Feb 21, 2008 - 5:55 AM
|
I think I was misunderstood... I have a cell (not a button cell, it can be any cell type) which I place an ellipsis button on it like by adding the style __EGCS_BUTTON_ELLIPSIS I would like to replace the ... with an icon. What steps do I need to take for doing this?
|
|
Technical Support
|
Feb 21, 2008 - 5:32 AM
|
The CExtGridCellButton grid cell class re-computes the layout of the built-in ellipsis button to stretch it across the entire cell and repaint it. The current version implements a button only cell without an icon, a check box and other built-in parts. It’s possible to modify it and support icon painting near the button or inside it.
|
|