wxListCtrl sends event directly again. Also fixed problem
of list otem status not being up-to-date when events get sent. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -710,11 +710,11 @@ void wxListLineData::DoDraw( wxDC *dc, bool hilight, bool paintBG )
|
|||||||
void wxListLineData::Hilight( bool on )
|
void wxListLineData::Hilight( bool on )
|
||||||
{
|
{
|
||||||
if (on == m_hilighted) return;
|
if (on == m_hilighted) return;
|
||||||
|
m_hilighted = on;
|
||||||
if (on)
|
if (on)
|
||||||
m_owner->SelectLine( this );
|
m_owner->SelectLine( this );
|
||||||
else
|
else
|
||||||
m_owner->DeselectLine( this );
|
m_owner->DeselectLine( this );
|
||||||
m_hilighted = on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxListLineData::ReverseHilight( void )
|
void wxListLineData::ReverseHilight( void )
|
||||||
@@ -1258,8 +1258,8 @@ void wxListMainWindow::SendNotify( wxListLineData *line, wxEventType command )
|
|||||||
le.SetEventObject( GetParent() );
|
le.SetEventObject( GetParent() );
|
||||||
le.m_itemIndex = GetIndexOfLine( line );
|
le.m_itemIndex = GetIndexOfLine( line );
|
||||||
line->GetItem( 0, le.m_item );
|
line->GetItem( 0, le.m_item );
|
||||||
// GetParent()->GetEventHandler()->ProcessEvent( le );
|
GetParent()->GetEventHandler()->ProcessEvent( le );
|
||||||
GetParent()->GetEventHandler()->AddPendingEvent( le );
|
// GetParent()->GetEventHandler()->AddPendingEvent( le );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxListMainWindow::FocusLine( wxListLineData *WXUNUSED(line) )
|
void wxListMainWindow::FocusLine( wxListLineData *WXUNUSED(line) )
|
||||||
|
Reference in New Issue
Block a user