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