U++ framework
Do not panic. Ask here before giving up.

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: Thu Jun 11 21:04:51 GMT+2 2026

Total time taken to generate the page: 0.00449 seconds