-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewWidget.h
55 lines (43 loc) · 1.5 KB
/
NewWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// DRN: Unused in current Testdc Demo application (replaced by kwxNewWidget ?)
/////////////////////////////////////////////////////////////////////////////
// Name: NewWidget.h
// Purpose:
// Author:
// Modified by:
// Created:
// RCS-ID:
// Copyright: (C)2003
// Licence: wxWindows
/////////////////////////////////////////////////////////////////////////////
#ifndef NewWidget_H
#define NewWidget_H
class kwxNewWidget : public wxWindow
{
// DECLARE_DYNAMIC_CLASS(kwxNewWidget)
public:
// ctor(s)
kwxNewWidget(wxWindow *parent,
const wxWindowID id = -1,
const wxString& label = wxEmptyString,
wxBitmap& defaultBitmap = wxNullBitmap,
wxBitmap& MoveMouseBitmap = wxNullBitmap,
wxBitmap& PressMouseBitmap = wxNullBitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const long int style = 0);
int m_stato,m_oldstato;
// virtual ~kwxNewWidget();
void SetLabel(wxString str); // Change button label.
void kwxNewWidget::OnEraseBackGround(wxEraseEvent& event);
private:
// any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE()
void OnPaint(wxPaintEvent& event);
void OnMouse(wxMouseEvent& event);
bool MouseIsOnButton();
wxString mLabelStr;
wxBitmap* mDefaultBitmap;
wxBitmap* mMoveMouseBitmap;
wxBitmap* mPressMouseBitmap;
};
#endif // KwxNewWidget_H