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
[Solved albeit ugly] Scrolling messes up GridCtrl in certain condition [message #39211] Thu, 28 February 2013 13:06 Go to previous message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
See attached sample code.

Run the example, click "refresh" button to populate the GridCtrl. Drag the vertical scollbar and move down, the GridCtrl will be messed up.

Also, the sum row reports incorrect total. The last row in the GridCtrl is not counted. Click any column header to sort the GridCtrl, the correct sum will appear. Call UpdateSummary() manually after changing data will fix it. Not sure if this is required by design.

SaleInvoiceListTab::SaleInvoiceListTab()
{
	CtrlLayout(*this);
	refresh<<=THISBACK(RefreshReport);
	//RefreshReport();

          // Note: uncomment above line will eliminate the Paint issue
          
}


Thanks,

Lance

[Updated on: Sat, 02 March 2013 00:48]

Report message to a moderator

 
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: Sat Apr 27 18:59:45 CEST 2024

Total time taken to generate the page: 0.03241 seconds