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 » [Solved albeit ugly] Scrolling messes up GridCtrl in certain condition
Re: [GridCtrl] Scrolling messes up GridCtrl in certian condition [message #39227 is a reply to message #39226] Sat, 02 March 2013 01:20 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
The following code in GridCtrl.cpp tells us why reason==OPEN is so special as Init() is called within and everything is guaranteed to work well before further changes. Unfortunately Init() and the most or all the method it calls are private, so RemoveCtrl() and Add() is indeed the best thing we can do for now.


void GridCtrl::Init()
{
	bar.Set(WhenToolBar);
	UpdateCols(true);
	/* recalc_rows bo przed otworzeniem grida moglo zostac wywolane setrowheight */
	UpdateRows(resize_row_mode > 0 || recalc_rows);

	UpdateSizes();
	UpdateSb();
	UpdateHolder(true);
	SyncSummary();
	SyncCtrls();
}

void GridCtrl::State(int reason)
{
	if(reason == OPEN)
	{
		Init();
		ready = true;
		//ready po init - updatesb wola layout() a ten syncctrl
		//(ktory w sumie wola sie 3 razy zanim grid sie wyswietli - niepotrzebnie)
	}


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [maybe bug?] Removing last item in arrayctrl
Next Topic: GridCtrl and popup menu problem
Goto Forum:
  


Current Time: Fri May 10 22:09:23 CEST 2024

Total time taken to generate the page: 0.01607 seconds