mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
FIX:textinput behavior on send dialog (STUDIO-2347)
Change-Id: Iec970de7cd2f85b835b64283089c41f52df1cfcc
This commit is contained in:
parent
f0a41b552b
commit
a6be285843
3 changed files with 16 additions and 4 deletions
|
@ -45,7 +45,13 @@ wxDEFINE_EVENT(EVT_SET_FINISH_MAPPING, wxCommandEvent);
|
|||
SetMaxSize(MATERIAL_ITEM_SIZE);
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
|
||||
Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
|
||||
m_main_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
||||
auto main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
main_sizer->Add(m_main_panel, 1, wxEXPAND);
|
||||
this->SetSizer(main_sizer);
|
||||
this->Layout();
|
||||
|
||||
m_main_panel->Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
|
||||
wxGetApp().UpdateDarkUI(this);
|
||||
}
|
||||
|
||||
|
@ -89,7 +95,7 @@ void MaterialItem::on_normal()
|
|||
|
||||
void MaterialItem::paintEvent(wxPaintEvent &evt)
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
wxPaintDC dc(m_main_panel);
|
||||
render(dc);
|
||||
|
||||
//PrepareDC(buffdc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue