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 General Discussion » Center CExtGridCellPicture in Grid Collapse All
Subject Author Date
Douglas Hoppes Mar 18, 2011 - 10:54 AM

Hi all,

Is there a way to center a CExtGridCellPicture in a grid cell. I would like a buffered area around my picture so that the highlight of the cell surrounds the entire picture.

Dougie

Technical Support Mar 21, 2011 - 1:00 AM

You should specify the CExtGridCellPictureBase::eAlign image painting mode using the CExtGridCellPictureBase::ImageModeSet() method. This mode means the image will be aligned according to the text aligning styles. Now you can apply the __EGCS_TA_HORZ_*** and __EGCS_TA_VERT_*** basic styles using the CExtGridCell::ModifyStyle() method to specify position of image.