-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwxKeylessBitmapButton.h
More file actions
21 lines (19 loc) · 902 Bytes
/
wxKeylessBitmapButton.h
File metadata and controls
21 lines (19 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "wx/bmpbuttn.h"
class wxKeylessBitmapButton : public wxBitmapButton
{
public:
wxKeylessBitmapButton() : wxBitmapButton() {}
~wxKeylessBitmapButton() {}
wxKeylessBitmapButton( wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxBU_AUTODRAW|wxWANTS_CHARS )
{
Create( parent, id, bitmap, pos, size, style );
}
void Create( wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxBU_AUTODRAW|wxWANTS_CHARS );
void OnKeyDown( wxKeyEvent& event );
void OnKeyUp( wxKeyEvent& event );
void OnChar( wxKeyEvent& event );
bool AcceptsFocusFromKeyboard() const { return false; }
bool AcceptsFocus() const { return false; }
DECLARE_EVENT_TABLE();
};