FIX:fixed filament settings page display error in French

jira:[STUDIO-5821]

Change-Id: I6cc6dd9b83c7570688c2adc55efe2407cbcb4390
This commit is contained in:
tao wang 2024-03-12 20:31:20 +08:00 committed by Lane.Wei
parent 677bcc1809
commit 13eeae7fa2
2 changed files with 6 additions and 2 deletions

View File

@ -251,8 +251,11 @@ void AMSMaterialsSetting::create_panel_normal(wxWindow* parent)
m_panel_SN->Fit();
wxBoxSizer* m_tip_sizer = new wxBoxSizer(wxHORIZONTAL);
m_tip_readonly = new wxStaticText(parent, wxID_ANY, _L("Setting AMS slot information while printing is not supported"), wxDefaultPosition, wxSize(-1, AMS_MATERIALS_SETTING_INPUT_SIZE.y));
m_tip_readonly = new Label(parent, _L("Setting AMS slot information while printing is not supported"));
m_tip_readonly->SetForegroundColour(*wxBLACK);
m_tip_readonly->SetBackgroundColour(*wxWHITE);
m_tip_readonly->SetMinSize(wxSize(FromDIP(450), -1));
m_tip_readonly->SetMaxSize(wxSize(FromDIP(450), -1));
m_tip_readonly->Hide();
m_tip_sizer->Add(m_tip_readonly, 0, wxALIGN_CENTER | wxRIGHT, FromDIP(20));
@ -417,6 +420,7 @@ void AMSMaterialsSetting::enable_confirm_button(bool en)
else {
m_tip_readonly->SetLabelText(_L("Setting Virtual slot information while printing is not supported"));
}
m_tip_readonly->Wrap(FromDIP(450));
m_tip_readonly->Show(!en);
}
}

View File

@ -165,7 +165,7 @@ protected:
wxStaticBitmap * bitmap_min_degree;
Button * m_button_reset;
Button * m_button_confirm;
wxStaticText* m_tip_readonly;
Label* m_tip_readonly;
Button * m_button_close;
wxColourData * m_clrData;