Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » White space on a arrayctrl cell
Re: White space on a arrayctrl cell [message #23016 is a reply to message #23012] Mon, 07 September 2009 14:25 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
darthspawn wrote on Mon, 07 September 2009 05:18

Sorry for my brutal english Smile

if you take a look of the image, you can see that the colored cell is not all painted, but there is empty blue space (white if the row is not selected) at the sides of the cell.

Sam


Ah, I see.

These are "margins".

There are 3 possibilities how to deal with them:

1) Make them zero in HeaderCtrl (AddColumn(...)...HeaderTab().Margin(0)). This has disadvantage that this margin would apply to HeaderCtrl header too.
2) Make them zero in ArrayCtrl::Column (normaly these are not defined and the value is taken from HeaderCtrl, but if defined, it takes precendce. This has disadvantage that you might have to change your Display to add these margins by yourself.
3) Use Display::PaintBackground. This is perhaps the most straighforward way...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Right Click on GridCtrl
Next Topic: Get number of displayed rows in gridctrl
Goto Forum:
  


Current Time: Sun May 11 12:15:29 CEST 2025

Total time taken to generate the page: 0.03322 seconds