Beispiel #1
0
void wxMDIParentFrame::OnIconized(wxIconizeEvent& event)
{
    event.Skip();

    if ( !event.IsIconized() )
        UpdateClientSize();
}
//------------------------------------------------------------------------------
//void OnIconize(wxIconizeEvent &event)
//------------------------------------------------------------------------------
void GmatMdiChildFrame::OnIconize(wxIconizeEvent &event)
{
   #ifdef DEBUG_ICONIZE
   MessageInterface::ShowMessage
      ("\nGmatMdiChildFrame::OnIconize() entered, title='%s', mItemType=%d\n",
       GetTitle().c_str(), mItemType);
   #endif
   
   // Update both edit and animation tools if frame is restored
   #ifdef DEBUG_UPDATE_GUI_ITEM
   MessageInterface::ShowMessage("   Calling UpdateGuiItem()\n");
   #endif
   if (event.Iconized())
   {
      #ifdef DEBUG_UPDATE_GUI_ITEM
      MessageInterface::ShowMessage("   Frame is iconized.\n");
      #endif
      UpdateGuiItem(0, 0);
   }
   else
   {
      #ifdef DEBUG_UPDATE_GUI_ITEM
      MessageInterface::ShowMessage("   Frame is restored.\n");
      #endif
      UpdateGuiItem(1, 1);
   }
   
   #ifdef DEBUG_ICONIZE
   MessageInterface::ShowMessage
      ("GmatMdiChildFrame::OnIconize() leaving, title='%s'\n", GetTitle().c_str());
   #endif
   event.Skip();
}
Beispiel #3
0
void wxZRColaFrame::OnIconize(wxIconizeEvent& event)
{
    if (m_taskBarIcon)
        Show(!event.IsIconized());

    event.Skip();
}
Beispiel #4
0
void NaviMainFrame::onIconize(wxIconizeEvent& event) {
    bool trayEnabled;
    wxConfigBase::Get()->Read(Preferences::MINIMIZE_TO_TRAY, &trayEnabled, false);
    if (trayEnabled) {
        Show(!event.Iconized());
    }

    event.Skip();
}
void DialogDetachedVideo::OnMinimize(wxIconizeEvent &event) {
	if (event.IsIconized()) {
		// Force the video display to repaint as otherwise the last displayed
		// frame stays visible even though the dialog is minimized
		Hide();
		Show();
	}
}
Beispiel #6
0
void CamuleDlg::OnMinimize(wxIconizeEvent& evt)
{
// Evil Hack: check if the mouse is inside the window
#ifndef __WINDOWS__ 
	if (GetScreenRect().Contains(wxGetMousePosition()))
#endif
	{
		if (m_prefsDialog && m_prefsDialog->IsShown()) {
			// Veto.
		} else {
			if (m_wndTaskbarNotifier) {
#if wxCHECK_VERSION(2, 9, 0)
				DoIconize(evt.IsIconized());
#else
				DoIconize(evt.Iconized());
#endif
			}
			evt.Skip();
		}
	}
}
void OBSBasic::OnMinimize(wxIconizeEvent &event)
{
	event.Skip();
}
Beispiel #8
0
void Simple::OnIconize (wxIconizeEvent& event)
{
  csPrintf("got iconize %d\n", (int) event.Iconized ());
}