avoid flicker when doing SetItem() in non report mode (slightly extended patch 647970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3806,16 +3806,10 @@ void wxListMainWindow::SetItem( wxListItem &item )
|
|||||||
line->SetItem( item.m_col, item );
|
line->SetItem( item.m_col, item );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( InReportView() )
|
// update the item on screen
|
||||||
{
|
wxRect rectItem;
|
||||||
// just refresh the line to show the new value of the text/image
|
GetItemRect(id, rectItem);
|
||||||
RefreshLine((size_t)id);
|
RefreshRect(rectItem);
|
||||||
}
|
|
||||||
else // !report
|
|
||||||
{
|
|
||||||
// refresh everything (resulting in horrible flicker - FIXME!)
|
|
||||||
m_dirty = TRUE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxListMainWindow::SetItemState( long litem, long state, long stateMask )
|
void wxListMainWindow::SetItemState( long litem, long state, long stateMask )
|
||||||
|
Reference in New Issue
Block a user