From ee1c8c5c25d25dfa42120125a8a45dc9831ee412 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:23:48 +0200 Subject: 5.14 --- wx+/tooltip.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'wx+/tooltip.h') diff --git a/wx+/tooltip.h b/wx+/tooltip.h index 9060c127..d17e650e 100644 --- a/wx+/tooltip.h +++ b/wx+/tooltip.h @@ -7,22 +7,25 @@ #ifndef CUSTOMTOOLTIP_H_INCLUDED #define CUSTOMTOOLTIP_H_INCLUDED -#include +#include namespace zen { class Tooltip { public: - Tooltip(); - ~Tooltip(); + Tooltip(wxWindow& parent) : //parent needs to live at least as long as this instance! + tipWindow(nullptr), parent_(parent) {} - void show(const wxString& text, wxPoint mousePos, const wxBitmap* bmp = nullptr); //absolute screen coordinates + void show(const wxString& text, + wxPoint mousePos, //absolute screen coordinates + const wxBitmap* bmp = nullptr); void hide(); private: - class PopupFrameGenerated; - PopupFrameGenerated* tipWindow; + class PopupDialogGenerated; + PopupDialogGenerated* tipWindow; + wxWindow& parent_; }; } -- cgit