void wxNotificationMessageWindow::OnClose(wxCloseEvent& WXUNUSED(event)) { wxCommandEvent evt(wxEVT_NOTIFICATION_MESSAGE_DISMISSED); m_notificationImpl->ProcessNotificationEvent(evt); if ( m_timer.IsRunning() ) m_timer.Stop(); m_notificationImpl->Close(); }
void wxToolBoxMinimalTestFrame::OnSubmit(wxCommandEvent & event) { if(m_gaugetimer->IsRunning()) { m_gaugetimer->Stop(); } else { m_gaugetimer->Start(500); } }
void wxNotificationMessageWindow::Set(int timeout) { Layout(); Fit(); AddVisibleNotification(this); if ( timeout != wxGenericNotificationMessage::Timeout_Never ) { // wxTimer uses ms, timeout is in seconds m_timer.Start(500); m_timeout = timeout; m_timeoutTargetTime = wxGetUTCTime() + timeout; } else if ( m_timer.IsRunning() ) { m_timer.Stop(); } }
void ValueChangingWidget::OnThumbTrack(wxScrollEvent&) { if (!timer_.IsRunning()) timer_.Start(100); }
bool wxNotificationMessageWindow::Hide() { if ( m_timer.IsRunning() ) m_timer.Stop(); RemoveVisibleNotification(this); return wxFrame::HideWithEffect(wxSHOW_EFFECT_BLEND); }