MCPcopy Create free account
hub / github.com/bambulab/BambuStudio / SetButtonLabel

Method SetButtonLabel

src/slic3r/GUI/MsgDialog.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128void MsgDialog::SetButtonLabel(wxWindowID btn_id, const wxString& label, bool set_focus/* = false*/)
129{
130 if (Button* btn = get_button(btn_id)) {
131 btn->SetLabel(label);
132 if (set_focus)
133 btn->SetFocus();
134 }
135}
136
137Button* MsgDialog::add_button(wxWindowID btn_id, bool set_focus /*= false*/, const wxString& label/* = wxString()*/)
138{

Callers 15

del_from_cut_objectMethod · 0.80
on_lamp_switchMethod · 0.80
OnAmsTypeChangedMethod · 0.80
switch_diameterMethod · 0.80
sync_extruder_listMethod · 0.80
privMethod · 0.80
on_helio_input_dlgMethod · 0.80

Calls 2

SetLabelMethod · 0.45
SetFocusMethod · 0.45

Tested by

no test coverage detected