622 : wxPanel(parent,
id, pos, size,
style)
623{
624 if (ground_panel)
625 SetBackgroundColour(wxColour(238, 238, 238));
626 else
627 SetBackgroundColour(parent->GetBackgroundColour());
628 int left_align_padding = ground_panel ? FromDIP(20) : 0;
629
630 wxBoxSizer* top_sizer = new wxBoxSizer(wxVERTICAL);
631 top_sizer->AddSpacer(FromDIP(10));
632
633 auto help_text_title =
new Label(
this,
_L(
"How can I use calibration results\?"));
635 top_sizer->Add(help_text_title, 0, wxLEFT | wxRIGHT, left_align_padding);
636
637 wxBoxSizer* help_text_sizer = new wxBoxSizer(wxHORIZONTAL);
638 auto help_text =
new Label(
this,
_L(
"You could change the Flow Dynamics Calibration Factor in material editing"));
640 m_help_btn =
new ScalableButton(
this, wxID_ANY,
"cali_page_caption_help", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER,
false, 24);
642 help_text_sizer->Add(help_text, 0, wxALIGN_CENTER | wxLEFT, left_align_padding);
643 help_text_sizer->Add(
m_help_btn, 0, wxALIGN_CENTER | wxLEFT, FromDIP(8));
644 help_text_sizer->AddSpacer(FromDIP(20));
645
646 top_sizer->Add(help_text_sizer);
647
648 top_sizer->AddSpacer(FromDIP(6));
649
651
652 SetSizer(top_sizer);
653 top_sizer->Fit(this);
654}
#define _L(s)
Definition OBJ.cpp:34
#define style
Definition WipeTowerDialog.cpp:101
static wxFont Head_14
Definition Label.hpp:45
static wxFont Body_14
Definition Label.hpp:53
void create_pop_window()
Definition CalibrationWizardPage.cpp:663
ScalableButton * m_help_btn
Definition CalibrationWizardPage.hpp:215