m_textctrlWrapper = NULL;
}
- // we don't draw anything while we're frozen so we must refresh ourselves
- // when we're thawed to make sure the changes are displayed correctly
- virtual void DoThaw() { Refresh(); }
-
void OnRenameTimer();
bool OnRenameAccept(size_t itemEdit, const wxString& value);
void OnRenameCancelled(size_t itemEdit);
int xOld = x;
x += width;
+ const int wText = width - 8;
+ wxDCClipper clipper(*dc, xOld, rect.y, wText, rect.height);
+
if ( item->HasImage() )
{
int ix, iy;
}
if ( item->HasText() )
- DrawTextFormatted(dc, item->GetText(), col, xOld, yMid, width - 8);
+ DrawTextFormatted(dc, item->GetText(), col, xOld, yMid, wText);
}
}
// done (a Windows requirement).
wxPaintDC dc( this );
- if ( IsEmpty() || IsFrozen() )
+ if ( IsEmpty() )
{
// nothing to draw or not the moment to draw it
return;
ke.SetEventObject( parent );
if (parent->GetEventHandler()->ProcessEvent( ke )) return;
- if (event.GetKeyCode() == WXK_TAB)
- {
- wxNavigationKeyEvent nevent;
- nevent.SetWindowChange( event.ControlDown() );
- nevent.SetDirection( !event.ShiftDown() );
- nevent.SetEventObject( GetParent()->GetParent() );
- nevent.SetCurrentFocus( m_parent );
- if (GetParent()->GetParent()->GetEventHandler()->ProcessEvent( nevent ))
- return;
- }
+ if ( HandleAsNavigationKey(event) )
+ return;
// no item -> nothing to do
if (!HasCurrent())
}
}
-void wxGenericListCtrl::DoFreeze()
-{
- m_mainWin->Freeze();
-}
-
-void wxGenericListCtrl::DoThaw()
-{
- m_mainWin->Thaw();
-}
-
#endif // wxUSE_LISTCTRL