From 026b105dcbbbbf36df231fd71a5cc950fe96c07d Mon Sep 17 00:00:00 2001 From: SoftFever Date: Tue, 24 Mar 2026 20:56:04 +0800 Subject: [PATCH] Remove wxTRANSPARENT_WINDOW flag for wxWidgets 3.3 compatibility wxTRANSPARENT_WINDOW is removed in wxWidgets 3.3. Remove all 3 occurrences in MainFrame.cpp: - ResizeEdgePanel constructor: already uses wxBG_STYLE_TRANSPARENT via SetBackgroundStyle(), so the flag was redundant - slice_panel and print_panel: drop the style parameter entirely (defaults to 0) --- src/slic3r/GUI/MainFrame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 7e7bdb04dc..775c2aeed2 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -118,7 +118,7 @@ public: ResizeEdgePanel(MainFrame* frame, Edge edge) : wxPanel(frame, wxID_ANY, wxDefaultPosition, wxDefaultSize, - wxBORDER_NONE | wxTRANSPARENT_WINDOW) + wxBORDER_NONE) , m_frame(frame) , m_edge(edge) { @@ -1802,8 +1802,8 @@ wxBoxSizer* MainFrame::create_side_tools() m_slice_select = eSlicePlate; m_print_select = ePrintPlate; - auto slice_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxTRANSPARENT_WINDOW); - auto print_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxTRANSPARENT_WINDOW); + auto slice_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize); + auto print_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize); m_slice_btn = new SideButton(slice_panel, _L("Slice plate"), ""); m_slice_option_btn = new SideButton(slice_panel, "", "sidebutton_dropdown", 0, 14);