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 |
Lance
Messages: 527 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
|
|
|
Goto Forum:
Current Time: Fri May 10 00:58:37 CEST 2024
Total time taken to generate the page: 0.02613 seconds
|