Allow wxGenericListCtrl to correctly handle Get/SetScrollPos [bug 1584099].
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -183,6 +183,9 @@ public:
|
|||||||
virtual bool SetFont( const wxFont &font );
|
virtual bool SetFont( const wxFont &font );
|
||||||
virtual bool SetCursor( const wxCursor &cursor );
|
virtual bool SetCursor( const wxCursor &cursor );
|
||||||
|
|
||||||
|
virtual int GetScrollPos(int orient) const;
|
||||||
|
virtual void SetScrollPos(int orient, int pos, bool refresh = true);
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||||
virtual wxDropTarget *GetDropTarget() const;
|
virtual wxDropTarget *GetDropTarget() const;
|
||||||
|
@@ -5225,6 +5225,16 @@ wxColour wxGenericListCtrl::GetItemBackgroundColour( long item ) const
|
|||||||
return info.GetBackgroundColour();
|
return info.GetBackgroundColour();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int wxGenericListCtrl::GetScrollPos( int orient ) const
|
||||||
|
{
|
||||||
|
return m_mainWin->GetScrollPos( orient );
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxGenericListCtrl::SetScrollPos( int orient, int pos, bool refresh )
|
||||||
|
{
|
||||||
|
m_mainWin->SetScrollPos( orient, pos, refresh );
|
||||||
|
}
|
||||||
|
|
||||||
void wxGenericListCtrl::SetItemFont( long item, const wxFont &f )
|
void wxGenericListCtrl::SetItemFont( long item, const wxFont &f )
|
||||||
{
|
{
|
||||||
wxListItem info;
|
wxListItem info;
|
||||||
|
Reference in New Issue
Block a user