mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 19:16:18 +08:00
FIX: [STUDIO-1011] windows can not scroll in inactivate window
Change-Id: Ib09e58f4637d632625bf7bd484fd26319630cdb2
This commit is contained in:
parent
05904e3770
commit
9b10b1438c
@ -335,6 +335,7 @@ void ImageGrid::mouseDown(wxMouseEvent& event)
|
|||||||
m_hit_item = hit.second;
|
m_hit_item = hit.second;
|
||||||
if (m_hit_type >= HIT_ACTION)
|
if (m_hit_type >= HIT_ACTION)
|
||||||
Refresh();
|
Refresh();
|
||||||
|
SetFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ void ComboBox::mouseDown(wxMouseEvent &event)
|
|||||||
} else if (drop.HasDismissLongTime()) {
|
} else if (drop.HasDismissLongTime()) {
|
||||||
drop.autoPosition();
|
drop.autoPosition();
|
||||||
drop_down = true;
|
drop_down = true;
|
||||||
drop.Popup();
|
drop.Popup(&drop);
|
||||||
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
|
||||||
GetEventHandler()->ProcessEvent(e);
|
GetEventHandler()->ProcessEvent(e);
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ DropDown::DropDown(wxWindow * parent,
|
|||||||
void DropDown::Create(wxWindow * parent,
|
void DropDown::Create(wxWindow * parent,
|
||||||
long style)
|
long style)
|
||||||
{
|
{
|
||||||
wxPopupTransientWindow::Create(parent);
|
wxPopupTransientWindow::Create(parent, wxPU_CONTAINS_CONTROLS);
|
||||||
SetBackgroundStyle(wxBG_STYLE_PAINT);
|
SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||||
SetBackgroundColour(*wxWHITE);
|
SetBackgroundColour(*wxWHITE);
|
||||||
state_handler.attach({&border_color, &text_color, &selector_border_color, &selector_background_color});
|
state_handler.attach({&border_color, &text_color, &selector_border_color, &selector_background_color});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user