may be resizing finally works now (I am not even sure any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1239,9 +1239,13 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
|
|
||||||
int xEnd = x + wCol;
|
int xEnd = x + wCol;
|
||||||
|
|
||||||
|
// VZ: no, draw it normally - this is better now as we allow resizing
|
||||||
|
// of the last column as well
|
||||||
|
#if 0
|
||||||
// let the last column occupy all available space
|
// let the last column occupy all available space
|
||||||
if ( i == numColumns - 1 )
|
if ( i == numColumns - 1 )
|
||||||
cw = w-x-1;
|
cw = w-x-1;
|
||||||
|
#endif // 0
|
||||||
|
|
||||||
dc.SetPen( *wxWHITE_PEN );
|
dc.SetPen( *wxWHITE_PEN );
|
||||||
|
|
||||||
@@ -1303,6 +1307,7 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
|
|||||||
{
|
{
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
m_isDragging = FALSE;
|
m_isDragging = FALSE;
|
||||||
|
m_dirty = TRUE;
|
||||||
m_owner->SetColumnWidth( m_column, m_currentX-m_minX );
|
m_owner->SetColumnWidth( m_column, m_currentX-m_minX );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user