void Ouchy::DoOuch() { if( !m_state ) { m_button->SetLabel( "Ouch" ); } else { m_button->SetLabel( "Boom" ); } m_state = !m_state; }
void ButtonsExample::ButtonClick() { // When the Button is clicked it's label should change. m_button->SetLabel( "I was clicked" ); }