void CompilerMessages::AppendAdditionalMenuItems(wxMenu &menu) { menu.Append(idMenuFit, _("Fit text"), _("Makes the whole text visible")); menu.AppendCheckItem(idMenuAutoFit, _("Fit automatically"), _("Automatically makes the whole text visible during compilation")); menu.Check(idMenuAutoFit, m_autoFit); }
void wxHeaderCtrlBase::AddColumnsItems(wxMenu& menu, int idColumnsBase) { const unsigned count = GetColumnCount(); for ( unsigned n = 0; n < count; n++ ) { const wxHeaderColumn& col = GetColumn(n); menu.AppendCheckItem(idColumnsBase + n, col.GetTitle()); if ( col.IsShown() ) menu.Check(n, true); } }