void FrameTestCase::Iconize() { #ifdef __WXMSW__ EventCounter iconize(m_frame, wxEVT_ICONIZE); m_frame->Iconize(); m_frame->Iconize(false); CPPUNIT_ASSERT_EQUAL(2, iconize.GetCount()); #endif }
void Client::takeButtonRelease( Window w, unsigned int button, bool mod1, int x, int y ) { if ( w == close_button ) { if ( awaiting_close && ( x > 0 && y > 0 && x < button_size && y < button_size )) { ws->tryDelete( window ); } ws->painter()->setButtonBackground( close_button, Painter::CLOSE_BUTTON, active, false, button_size, button_size ); awaiting_close = false; } if ( w == iconize_button ) { if ( awaiting_iconize && ( x > 0 && y > 0 && x < button_size && y < button_size )) { iconize(); } ws->painter()->setButtonBackground( iconize_button, Painter::ICONIZE_BUTTON, active, false, button_size, button_size ); awaiting_iconize = false; } if ( isFrame( w ) ) { switch (button) { case 1: break; case 2: break; case 3: break; } } else { awaiting_close = false; awaiting_iconize = false; } }