diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-03 12:43:16 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-03 12:43:16 -0400 |
commit | 02c331f4e766558bba580d5b7db883357be005d5 (patch) | |
tree | 16e8fd4a48c1951e0dd7785295fcbe62b9669880 /tracker_frame.cpp | |
parent | 47e59ea969c775bea316b1a910c845a7c8482091 (diff) | |
download | lingo-ap-tracker-02c331f4e766558bba580d5b7db883357be005d5.tar.gz lingo-ap-tracker-02c331f4e766558bba580d5b7db883357be005d5.tar.bz2 lingo-ap-tracker-02c331f4e766558bba580d5b7db883357be005d5.zip |
Changes to make it work better on Windows
AreaWindows are now no longer separate controls but are instead just painted onto the TrackerPanel. This lets us avoid the complexity of z-ordering with sibling controls. We can also use the mouse motion event to display and hide the popups, which conveniently doesn't fire when the mouse is over a popup, so the popup won't hide until you mouse off of the window AND popup.
Diffstat (limited to 'tracker_frame.cpp')
-rw-r--r-- | tracker_frame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker_frame.cpp b/tracker_frame.cpp index 237433a..37a8281 100644 --- a/tracker_frame.cpp +++ b/tracker_frame.cpp | |||
@@ -10,7 +10,7 @@ wxDEFINE_EVENT(STATE_CHANGED, wxCommandEvent); | |||
10 | wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); | 10 | wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); |
11 | 11 | ||
12 | TrackerFrame::TrackerFrame() | 12 | TrackerFrame::TrackerFrame() |
13 | : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker") { | 13 | : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { |
14 | ::wxInitAllImageHandlers(); | 14 | ::wxInitAllImageHandlers(); |
15 | 15 | ||
16 | GetAPState().SetTrackerFrame(this); | 16 | GetAPState().SetTrackerFrame(this); |