1 /****************************************************************************** 2 * src/wxClickText.h 3 * 4 * Implements a wxStaticText label which allows a tooltip and click events. 5 * 6 ****************************************************************************** 7 * Copyright (C) 2014 Timo Bingmann <tb@panthema.net> 8 * 9 * This program is free software: you can redistribute it and/or modify it 10 * under the terms of the GNU General Public License as published by the Free 11 * Software Foundation, either version 3 of the License, or (at your option) 12 * any later version. 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 * more details. 18 * 19 * You should have received a copy of the GNU General Public License along with 20 * this program. If not, see <http://www.gnu.org/licenses/>. 21 *****************************************************************************/ 22 23 #ifndef WXCLICKTEXT_H 24 #define WXCLICKTEXT_H 25 26 #include <wx/stattext.h> 27 28 class wxClickText : public wxStaticText 29 { 30 public: 31 32 wxClickText(wxWindow *parent, wxWindowID id, const wxString &label, 33 const wxPoint& pos = wxDefaultPosition, 34 const wxSize& size = wxDefaultSize, 35 int style = 0, const wxString& name = _T("staticText")); 36 37 virtual ~wxClickText(); 38 39 void OnMouseLeftDownEvent(wxMouseEvent& event); 40 41 DECLARE_EVENT_TABLE() 42 }; 43 44 #endif // WXCLICKTEXT_H 45