- this->m_Sizer = new Sizer( 0, 1, 0, 0 );
- for( ButtonGroupList::iterator it = this->m_ButtonGroupList.begin( ); it
- != this->m_ButtonGroupList.end( ); ++it )
+ try
+ {
+ this->m_Sizer = new Sizer( 0, 1, 0, 0 );
+ for( ButtonGroupList::iterator it = this->m_ButtonGroupList.begin( ); it
+ != this->m_ButtonGroupList.end( ); ++it )
+ {
+ GroupManager* manager = new GroupManager( this, *it );
+ this->m_GroupManagerList[ manager->GetButtonID( ) ] = manager;
+ this->m_Sizer->Add( manager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
+ std::cout << "creaButtonContainer: New ButtonGroup Sizer Added"
+ << std::endl;
+ }
+ this->SetSizer( this->m_Sizer );
+ this->FitSizer( );
+ }//yrt
+ catch ( const std::exception& e )