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 » GridCtrl column width simple question
Re: GridCtrl column width simple question [message #21059 is a reply to message #21056] Wed, 29 April 2009 11:47 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Please turn off column repainting when adding columns:
void Grid_Write(int row, int col, char *str)
{
        grid.Ready(false);
	if (row > grid.GetRowCount()-1) {
		for (int i = grid.GetRowCount(); i < row+1; ++i)
			grid.AddRow("", 100);	
	}
        grid.Ready(true);
}

This must be done only in Proportional mode and only if you're adding columns when grid is visible.

[Updated on: Wed, 29 April 2009 11:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: When ArrayCtrl is Embedded into TabCtrl, AutoHideSb() will be fail
Next Topic: How to remove a column from ArrayCtrl?
Goto Forum:
  


Current Time: Sun Jul 06 14:39:37 CEST 2025

Total time taken to generate the page: 0.04403 seconds