]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonContainerPanel.cxx
DFCH
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonContainerPanel.cxx
index 7aad096a42810495ffb4822687b2e121e9758e51..93feebc7ec06c4079b986b78c0975ce28cc3cf62 100644 (file)
@@ -2,7 +2,7 @@
  * @file buttonGroup.cxx
  * @brief Implements the ButtonGroup class.
  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date  2011-05-24
+ * @date  2011-06-02
  */
 
 #include "buttonContainerPanel.h"
@@ -11,6 +11,11 @@ namespace creaButtonContainer
 {
        namespace view
        {
+               BEGIN_EVENT_TABLE(ButtonContainerPanel,wxScrolledWindow)
+               //(*EventTable(ButtonContainerPanel)
+               //*)
+               END_EVENT_TABLE()
+
                // ----------------------------------------------------------------------------------
                ButtonContainerPanel::ButtonContainerPanel( wxWindow* parent,
                    ButtonGroupSettings* settings ) :
@@ -18,7 +23,7 @@ namespace creaButtonContainer
                                parent,
                                -1,
                                wxDefaultPosition,
-                               wxSize( 400, 400 ),
+                               wxDefaultSize,
                                wxTAB_TRAVERSAL | wxVSCROLL | wxHSCROLL
                                    | wxFULL_REPAINT_ON_RESIZE, _T("creaButtonContainer") )
                {
@@ -59,7 +64,7 @@ namespace creaButtonContainer
                                this->SetSizer( this->m_Sizer );
                                this->FitSizer( );
                        }//yrt
-                       catch ( std::exception& e )
+                       catch ( const std::exception& e )
                        {
                                std::cerr << "ButtonContainerPanel::PanelInit( ) " << "exception: "
                                    << e.what( ) << std::endl;