1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "CalculatorButton.h"
CalculatorButton::CalculatorButton( Window * pParent,
const Rect rFrame,
const String &pLabel,
unsigned int nWindowLayoutFlags,
unsigned int uiVKey)
{
pButton = new Button(pParent, rFrame, pLabel, nWindowLayoutFlags);
Shortcut pShortcut(pButton, uiVKey, 0, KEY_QUAL_NONE);
pShortcut.Fire.Connect(this, &CalculatorButton::OnClicked);
}
CalculatorButton::CalculatorButton( Window * pParent,
const Rect rFrame,
const String &pLabel,
unsigned int nWindowLayoutFlags)
{
pButton = new Button(pParent, rFrame, pLabel, nWindowLayoutFlags);
}
void CalculatorButton::OnClicked() {
}
|