From a66aa0a259253ee3578bb1de37f7984b21193983 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Fri, 2 Sep 2022 17:09:39 +0800 Subject: [PATCH] FIX: add text link to bed type Change-Id: Ic051bc37f87ec355865c3ce5fb857ad0a38c1d32 (cherry picked from commit 5573fdca645ba3721df25ae538c76b2f0abb2149) --- src/slic3r/GUI/Plater.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 64e21ea61..fc783375d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -520,6 +520,24 @@ Sidebar::Sidebar(Plater *parent) m_bed_type_list->AppendString(_L(item.first)); } + bed_type_title->Bind(wxEVT_ENTER_WINDOW, [bed_type_title, this](wxMouseEvent &e) { + e.Skip(); + auto font = bed_type_title->GetFont(); + font.SetUnderlined(true); + bed_type_title->SetFont(font); + SetCursor(wxCURSOR_HAND); + }); + bed_type_title->Bind(wxEVT_LEAVE_WINDOW, [bed_type_title, this](wxMouseEvent &e) { + e.Skip(); + auto font = bed_type_title->GetFont(); + font.SetUnderlined(false); + bed_type_title->SetFont(font); + SetCursor(wxCURSOR_ARROW); + }); + bed_type_title->Bind(wxEVT_LEFT_UP, [bed_type_title, this](wxMouseEvent &e) { + wxLaunchDefaultBrowser("https://wiki.bambulab.com/en/x1/manual/compatibility-and-parameter-settings-of-filaments"); + }); + m_bed_type_list->Select(0); bed_type_sizer->Add(bed_type_title, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(10)); bed_type_sizer->Add(m_bed_type_list, 1, wxLEFT | wxRIGHT | wxEXPAND, FromDIP(10));