for( int i=AUTOGROUPTYPE_AUDIO_FADE; i<=AUTOGROUPTYPE_Y; ++i ) {
int ww = BC_GenericButton::calculate_w(this, AutoTypeMenu::to_text(i));
if( ww > wid ) wid = ww;
}
add_subwindow(auto_type = new AutoTypeMenu(mwindow, this, x, y, wid));
auto_type->create_objects();
for( int i=AUTOGROUPTYPE_AUDIO_FADE; i<=AUTOGROUPTYPE_Y; ++i ) {
int ww = BC_GenericButton::calculate_w(this, AutoTypeMenu::to_text(i));
if( ww > wid ) wid = ww;
}
add_subwindow(auto_type = new AutoTypeMenu(mwindow, this, x, y, wid));
auto_type->create_objects();