示例#1
0
void Ouchy::DoOuch() {
	if( !m_state ) {
		m_button->SetLabel( "Ouch" );
	}
	else {
		m_button->SetLabel( "Boom" );
	}

	m_state = !m_state;
}
示例#2
0
void ButtonsExample::ButtonClick() {
	// When the Button is clicked it's label should change.
	m_button->SetLabel( "I was clicked" );
}