From 0a3c0c6882db2976c2b6fdbebbc127747ed63703 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 19 Jan 2024 18:16:41 -0500 Subject: Area popups are now painted Instead of being a bunch of controls. This fixes the problem with the window being slow to drag around, and with items in lists disappearing. Overall W for me. --- src/area_popup.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/area_popup.h') diff --git a/src/area_popup.h b/src/area_popup.h index d5f6a50..00c644d 100644 --- a/src/area_popup.h +++ b/src/area_popup.h @@ -7,19 +7,20 @@ #include #endif -#include "eye_indicator.h" - -class AreaPopup : public wxScrolledWindow { +class AreaPopup : public wxScrolledCanvas { public: AreaPopup(wxWindow* parent, int area_id); void UpdateIndicators(); private: + void OnPaint(wxPaintEvent& event); + int area_id_; - std::vector section_labels_; - std::vector eye_indicators_; + wxBitmap unchecked_eye_; + wxBitmap checked_eye_; + wxBitmap rendered_; }; #endif /* end of include guard: AREA_POPUP_H_03FAC988 */ -- cgit 1.4.1