mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH:fixed transparent controls that cannot be clicked
Change-Id: I36f34b73a5248299b1db20127b5cbd010592f62a
This commit is contained in:
parent
bba4b993f5
commit
27c8c81cc1
4 changed files with 21 additions and 1 deletions
|
@ -1168,6 +1168,14 @@ ColorPickerPopup::ColorPickerPopup(wxWindow* parent)
|
|||
m_ts_bitmap_custom = ScalableBitmap(this, "ts_custom_color_picker", 25);
|
||||
m_ts_stbitmap_custom = new wxStaticBitmap(m_custom_cp, wxID_ANY, m_ts_bitmap_custom.bmp());
|
||||
|
||||
m_ts_stbitmap_custom->Bind(wxEVT_LEFT_DOWN, &ColorPickerPopup::on_custom_clr_picker, this);
|
||||
m_ts_stbitmap_custom->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) {
|
||||
SetCursor(wxCURSOR_HAND);
|
||||
});
|
||||
m_ts_stbitmap_custom->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
|
||||
auto sizer_custom = new wxBoxSizer(wxVERTICAL);
|
||||
m_custom_cp->SetSizer(sizer_custom);
|
||||
sizer_custom->Add(m_ts_stbitmap_custom, 0, wxEXPAND, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue