Make row/column drag-resizing in wxGrid "live"
Update the column width immediately, as it's being dragged, instead of drawing a temporary line showing the new column boundary using wxINVERT. This results in better user experience, as it the effect of changing the column width can be immediately seen (especially important for non-left aligned columns or columns using ellipsizition) and, equally if not more importantly, fixes wxGrid drag-resize not showing any visible UI at all with wxGTK3 and wxOSX where wxINVERT is not implemented.
This commit is contained in:
parent
3d1de5c31b
commit
8b2237cd2d
3 changed files with 60 additions and 169 deletions
|
|
@ -1144,10 +1144,7 @@ TEST_CASE_METHOD(GridTestCase, "Grid::ColumnMinWidth", "[grid]")
|
|||
sim.MouseUp();
|
||||
wxYield();
|
||||
|
||||
if ( m_grid->IsUsingNativeHeader() )
|
||||
CHECK(m_grid->GetColSize(0) == startwidth);
|
||||
else
|
||||
CHECK(m_grid->GetColSize(0) == newminwidth);
|
||||
CHECK(m_grid->GetColSize(0) == newminwidth);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue