FIX: [STUDIO-2186] hide PopupWindow on alt-tab

Change-Id: Ie1bffdd9ace2c6e05979743da9f75ca2c1e87cf3
This commit is contained in:
chunmao.guo 2023-02-13 14:06:39 +08:00 committed by Lane.Wei
parent 6faecbf718
commit 81dea77932
23 changed files with 139 additions and 70 deletions

View file

@ -9,17 +9,18 @@
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/webrequest.h>
#include "Widgets/PopupWindow.hpp"
namespace Slic3r {
namespace GUI {
class SliceInfoPopup : public wxPopupTransientWindow
class SliceInfoPopup : public PopupWindow
{
public:
SliceInfoPopup(wxWindow *parent, wxBitmap bmp= wxNullBitmap, BBLSliceInfo* info=nullptr);
virtual ~SliceInfoPopup() {}
// wxPopupTransientWindow virtual methods are all overridden to log them
// PopupWindow virtual methods are all overridden to log them
virtual void Popup(wxWindow *focus = NULL) wxOVERRIDE;
virtual void OnDismiss() wxOVERRIDE;
virtual bool ProcessLeftDown(wxMouseEvent &event) wxOVERRIDE;