48 const int btn_proportion = 0;
50 for(
size_t i = 0; i < aDefs.size(); ++i )
52 const auto& def = aDefs[i];
53 wxButton* btn =
new wxButton(
this, def.m_id, def.m_text );
55 int this_style = wxTOP | wxBOTTOM;
57 if( ( aLeft && i > 0 ) || ( !aLeft ) )
60 if( ( aLeft ) || ( !aLeft && i < aDefs.size() - 1 ) )
61 this_style |= wxRIGHT;
63 btn->SetToolTip( def.m_tooltip );
67 btn->Bind( wxEVT_COMMAND_BUTTON_CLICKED, def.m_callback );