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 » How to make the property grid items fit the icon Collapse All
Subject Author Date
Malcolm D Jul 17, 2007 - 12:43 AM

I have a property item which has a CExtGridCellDropListComboBox which has images which are about twice the height of a normal cell.
They appear ok in the drop down - the drop down checks their height and makes each item the correct size for the icon, but how do we make the actual cell large enough to fit the icon, with out it being cropped or spilling into the previous cell (as it currently does)

Thanks

Technical Support Jul 18, 2007 - 8:43 AM

You should use the CExtPropertyItem::HeightPxGet() and CExtPropertyItem::HeightPxSet() methods which allow you to get and set the height of the property item (value or category) in pixels. The default value of row height is -1 and it means the row height should be default for the tree grid window.