Source

Tarrasch Chess GUI / src / CtrlEnhancedList.h

Full commit
/****************************************************************************
 * Control - An enhanced wxListCtrl
 *  Enhancements allow keyboard and mousewheel control
 *  Author:  Bill Forster
 *  Licence: See licencing information in ChessPosition.cpp
 *  Copyright 2010, Triple Happy Ltd.  All rights reserved.
 ****************************************************************************/
#ifndef CTRL_ENHANCED_LIST_H
#define CTRL_ENHANCED_LIST_H
#include "wx/wx.h"
#include "wx/listctrl.h"

class CtrlEnhancedList: public wxListCtrl
{
    DECLARE_CLASS( CtrlEnhancedList )
    DECLARE_EVENT_TABLE()
public:
    CtrlEnhancedList( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style )
        : wxListCtrl( parent, id, pos, size, style )
    {
    }
    void OnMouseWheel( wxMouseEvent &event );
    void OnChar( wxKeyEvent &event );
};

#endif // CTRL_ENHANCED_LIST_H