mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 17:03:12 +08:00
FIX: FanControl the info text display wrap
jira: [STUDIO-12088] Change-Id: Ic6a1d9ea60e85859f412bc65184b0eb085bba5b2
This commit is contained in:
parent
8d29e09c1b
commit
8dd0cb4901
@ -640,7 +640,7 @@ FanControlPopupNew::FanControlPopupNew(wxWindow* parent, MachineObject* obj, con
|
|||||||
m_mode_sizer->Add(m_radio_btn_sizer, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
m_mode_sizer->Add(m_radio_btn_sizer, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
||||||
m_mode_sizer->Add(m_button_refresh, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
m_mode_sizer->Add(m_button_refresh, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
||||||
m_button_refresh->Hide();
|
m_button_refresh->Hide();
|
||||||
m_cooling_text = new wxStaticText(this, wxID_ANY, wxT(""));
|
m_cooling_text = new Label(this);
|
||||||
m_cooling_text->SetBackgroundColour(*wxWHITE);
|
m_cooling_text->SetBackgroundColour(*wxWHITE);
|
||||||
|
|
||||||
//Control the show or hide of controls based on id
|
//Control the show or hide of controls based on id
|
||||||
@ -730,7 +730,7 @@ void FanControlPopupNew::UpdateTips(int model)
|
|||||||
{
|
{
|
||||||
auto text = label_text[AIR_DUCT(model)];
|
auto text = label_text[AIR_DUCT(model)];
|
||||||
m_cooling_text->SetLabelText(text);
|
m_cooling_text->SetLabelText(text);
|
||||||
m_cooling_text->Wrap(FromDIP(400));
|
m_cooling_text->Wrap(FromDIP(360));
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ private:
|
|||||||
std::map<int, bool> m_duct_ctrl;
|
std::map<int, bool> m_duct_ctrl;
|
||||||
|
|
||||||
Button* m_button_refresh;
|
Button* m_button_refresh;
|
||||||
wxStaticText* m_cooling_text;
|
Label* m_cooling_text;
|
||||||
MachineObject *m_obj{nullptr};
|
MachineObject *m_obj{nullptr};
|
||||||
|
|
||||||
std::string m_strong_str = "Strong string ...wait fill";
|
std::string m_strong_str = "Strong string ...wait fill";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user