freeplane_transform
-320.924223:169.055148:-900.000000
FIN_COMPLEX_PORT
-BOXES:102
+BOXES:104
BOX
creaMaracasVisu:ShowNPoints:showNpoints
ISEXEC:FALSE
BOX
creaMaracasVisu:ManualContourModel_Box:Box06
ISEXEC:FALSE
-35.216468:30.364799:-900.000000
-59.736468:27.864799:-900.000000
+36.048489:25.206269:-900.000000
+60.568489:22.706269:-900.000000
PORT
DoubleContour:"1"
PORT
BOX
creaMaracasVisu:DrawAxisTree3D:Box30
ISEXEC:FALSE
-71.195945:10.752752:-900.000000
-99.235945:8.252752:-900.000000
+71.029541:7.424668:-900.000000
+99.069541:4.924668:-900.000000
PORT
Colour:"0 0 1"
PORT
BOX
creaMaracasVisu:ManualContourModel_Box:Box29
ISEXEC:FALSE
-76.240145:29.637449:-900.000000
-100.760145:27.137449:-900.000000
+78.902612:24.978132:-900.000000
+103.422612:22.478132:-900.000000
PORT
NbPoints:"40"
PORT
BOX
creaVtk:BooleanOperationPolyDataFilter:Box77
ISEXEC:FALSE
--84.021341:-55.010494:-900.000000
--60.291341:-57.510494:-900.000000
+-84.222690:-57.628032:-900.000000
+-60.492690:-60.128032:-900.000000
PORT
BoxProcessMode:"Manual"
PORT
-158.791094:0.609690:-900.000000
-132.511094:-1.890310:-900.000000
PORT
-In:"Union Intersection Difference"
+In:"Union Intersection Difference Replace"
FIN_BOX
BOX
wx:LayoutLine:Box79
BOX
creaVtk:PolyDataNormals:Box95
ISEXEC:FALSE
-116.738582:-18.405915:-900.000000
-139.033582:-20.905915:-900.000000
+115.530488:-17.801868:-900.000000
+137.825488:-20.301868:-900.000000
PORT
Type:"1"
FIN_BOX
BOX
creaVtk:LinearExtrusionFilter:Box96
ISEXEC:FALSE
-126.138551:-32.318028:-900.000000
-148.648551:-34.818028:-900.000000
+124.326409:-32.116679:-900.000000
+146.836409:-34.616679:-900.000000
FIN_BOX
BOX
creaMaracasVisu:PolyDataToActor_Widget:Box98
BOX
wx:LayoutLine:Box101
ISEXEC:FALSE
-78.195133:-42.092223:-900.000000
-111.515133:-44.592223:-900.000000
+77.695920:-42.258627:-900.000000
+111.015920:-44.758627:-900.000000
PORT
Orientation:"V"
FIN_BOX
BOX
wx:LayoutLine:Box102
ISEXEC:FALSE
-47.580363:-71.654396:-900.000000
-80.900363:-74.154396:-900.000000
+38.095324:-75.814501:-900.000000
+71.415324:-78.314501:-900.000000
PORT
Orientation:"H"
PORT
BOX
wx:LayoutTab:Box106
ISEXEC:FALSE
-44.078139:-78.491084:-900.000000
-77.398139:-80.991084:-900.000000
+41.748480:-86.478485:-900.000000
+75.068480:-88.978485:-900.000000
FIN_BOX
BOX
creaMaracasVisu:MeshContours_Widget:Box107
BOX
std:MagicBox:Box109
ISEXEC:FALSE
-135.305882:-44.175286:-900.000000
-157.015882:-46.675286:-900.000000
+125.439777:-43.168541:-900.000000
+147.149777:-45.668541:-900.000000
FIN_BOX
BOX
creaVtk:MeshReduction_QuadricDecimation:Box110
BOX
wx:Slider:Box118
ISEXEC:FALSE
-71.035157:-27.538758:-900.000000
-100.835157:-30.038758:-900.000000
+70.369540:-25.708312:-900.000000
+100.169540:-28.208312:-900.000000
PORT
In:"0"
PORT
Label:"true"
PORT
-Max:"50"
+Max:"150"
PORT
-Min:"-50"
+Min:"-150"
PORT
ReactiveOnTrack:"true"
PORT
-326.072857:160.185314:-900.000000
-304.362857:157.685314:-900.000000
FIN_BOX
-CONNECTIONS:201
+BOX
+wx:LayoutLine:Box160
+ISEXEC:FALSE
+134.964613:21.874211:-900.000000
+168.284613:19.374211:-900.000000
+PORT
+Orientation:"H"
+PORT
+WinTitle:"Conf"
+FIN_BOX
+BOX
+wx:CheckBox:Box161
+ISEXEC:FALSE
+139.524925:32.934718:-900.000000
+161.264925:30.434718:-900.000000
+PORT
+Title:"Close Spline"
+FIN_BOX
+CONNECTIONS:205
CONNECTION
Box06:LstContourPointsX:Box04:LstX
NumberOfControlPoints:0
CONNECTION
Box151:Out:Box107:active_widget
NumberOfControlPoints:0
+CONNECTION
+Box160:Widget:Box106:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box161:Widget:Box160:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box161:Out:Box06:OpenClose
+NumberOfControlPoints:0
+CONNECTION
+Box161:Out:Box29:OpenClose
+NumberOfControlPoints:0
APP_END
//=====
#include "bbcreaMaracasVisuTransformWidget2.h"
#include "bbcreaMaracasVisuPackage.h"
+
+#include <wx/filedlg.h>
+
namespace bbcreaMaracasVisu
{
void OnRadioButtonY(wxEvent& event);
void OnRadioButtonZ(wxEvent& event);
void OnRadioButtonN(wxEvent& event);
+ void OnSave(wxCommandEvent& event);
+ void OnLoad(wxCommandEvent& event);
void OnReset(wxCommandEvent& event);
void OnMoveDown(wxCommandEvent& event);
void OnMoveUp(wxCommandEvent& event);
if (mBox->bbGetInputType()==1)
{
sizeSliderWidget.Set( 160 , -1 );
- sizeButton.Set( 20 , -1 );
- wxRadioButton *rBtnX = new wxRadioButton( this, -1, _T("ri") , wxDefaultPosition , wxDefaultSize , wxRB_GROUP );
- wxRadioButton *rBtnY = new wxRadioButton( this, -1, _T("rj") , wxDefaultPosition , wxDefaultSize , 0 );
- wxRadioButton *rBtnZ = new wxRadioButton( this, -1, _T("rk") , wxDefaultPosition , wxDefaultSize , 0 );
- wxRadioButton *rBtnC = new wxRadioButton( this, -1, _T("Cen") , wxDefaultPosition , wxDefaultSize , 0) ;
+ sizeButton.Set( 15 , -1 );
+ wxRadioButton *rBtnC = new wxRadioButton( this, -1, _T("Cen") , wxDefaultPosition , wxDefaultSize , wxRB_GROUP );
+ wxRadioButton *rBtnX = new wxRadioButton( this, -1, _T("ri") , wxDefaultPosition , wxDefaultSize , 0 );
+ wxRadioButton *rBtnY = new wxRadioButton( this, -1, _T("rj") , wxDefaultPosition , wxDefaultSize , 0 );
+ wxRadioButton *rBtnZ = new wxRadioButton( this, -1, _T("rk") , wxDefaultPosition , wxDefaultSize , 0 );
+ wxButton *BtnSave = new wxButton ( this, -1, _T("Save") , wxDefaultPosition, sizeButton );
+ wxButton *BtnLoad = new wxButton ( this, -1, _T("Load") , wxDefaultPosition, sizeButton );
rBtnC->SetValue(true); mTool = 3;
- mSliderGeneral = new wxSlider ( this, -1, 0 , -180, 180 , wxDefaultPosition,sizeSliderWidget ,wxSL_HORIZONTAL, wxDefaultValidator );
- cbLocalReference = new wxCheckBox ( this,-1, _T("Loc Ref") , wxDefaultPosition,wxDefaultSize ,wxCHK_2STATE | wxALIGN_RIGHT );
- wxButton *BtnMoveDown = new wxButton ( this, -1, _T("-") , wxDefaultPosition, sizeButton );
- wxButton *BtnMoveUp = new wxButton ( this, -1, _T("+") , wxDefaultPosition, sizeButton );
- wxButton *BtnReset = new wxButton ( this, -1, _T("Init") , wxDefaultPosition, sizeButton );
- wxButton *BtnMemory = new wxButton ( this, -1, _T("Set") , wxDefaultPosition, sizeButton );
- wxButton *BtnMemoryGoBack= new wxButton ( this, -1, _T("Reset") , wxDefaultPosition, sizeButton );
- Connect( rBtnX->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonX );
- Connect( rBtnY->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonY );
- Connect( rBtnZ->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonZ );
- Connect( rBtnC->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonN );
- Connect( BtnReset->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnReset );
- Connect( BtnMoveDown->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMoveDown );
- Connect( BtnMoveUp->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMoveUp );
- Connect( BtnMemory->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMemory );
- Connect( BtnMemoryGoBack->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMemoryGoBack );
- Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_THUMBRELEASE , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralRelease );
- Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_THUMBTRACK , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralTrack );
- Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_CHANGED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralTrack );
+ mSliderGeneral = new wxSlider ( this, -1, 0 , -180, 180 , wxDefaultPosition,sizeSliderWidget ,wxSL_HORIZONTAL, wxDefaultValidator );
+ cbLocalReference = new wxCheckBox ( this,-1, _T("Loc Ref") , wxDefaultPosition,wxDefaultSize ,wxCHK_2STATE | wxALIGN_RIGHT );
+ wxButton *BtnMoveDown = new wxButton ( this, -1, _T("-") , wxDefaultPosition, sizeButton );
+ wxButton *BtnMoveUp = new wxButton ( this, -1, _T("+") , wxDefaultPosition, sizeButton );
+ wxButton *BtnReset = new wxButton ( this, -1, _T("Init") , wxDefaultPosition, sizeButton );
+ wxButton *BtnMemory = new wxButton ( this, -1, _T("Set") , wxDefaultPosition, sizeButton );
+ wxButton *BtnMemoryGoBack= new wxButton ( this, -1, _T("Reset") , wxDefaultPosition, sizeButton );
+ Connect( rBtnX->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonX );
+ Connect( rBtnY->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonY );
+ Connect( rBtnZ->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonZ );
+ Connect( rBtnC->GetId() , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnRadioButtonN );
+ Connect( BtnSave->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnSave );
+ Connect( BtnLoad->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxEvent&)) &TransformWidgetPanel::OnLoad );
+ Connect( BtnReset->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnReset );
+ Connect( BtnMoveDown->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMoveDown );
+ Connect( BtnMoveUp->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMoveUp );
+ Connect( BtnMemory->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMemory );
+ Connect( BtnMemoryGoBack->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnMemoryGoBack );
+ Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_THUMBRELEASE , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralRelease );
+ Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_THUMBTRACK , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralTrack );
+ Connect( mSliderGeneral->GetId() , wxEVT_SCROLL_CHANGED , (wxObjectEventFunction)(void (wxPanel::*)(wxScrollEvent&)) &TransformWidgetPanel::OnSliderGeneralTrack );
+ wxBoxSizer *sizerA1 = new wxBoxSizer(wxHORIZONTAL);
+ sizerA1->Add( rBtnC , 1 );
+ sizerA1->Add( rBtnX , 1 );
+ sizerA1->Add( rBtnY , 1 );
+ sizerA1->Add( rBtnZ , 1 );
+ wxBoxSizer *sizerA2 = new wxBoxSizer(wxHORIZONTAL);
+ sizerA2->Add( BtnSave , 1 );
+ sizerA2->Add( BtnLoad , 1 );
wxBoxSizer *sizerA = new wxBoxSizer(wxHORIZONTAL);
- sizerA->Add( rBtnC , 1 );
- sizerA->Add( rBtnX , 1 );
- sizerA->Add( rBtnY , 1 );
- sizerA->Add( rBtnZ , 1 );
+ sizerA->Add( sizerA1 , 1 );
+ sizerA->Add( sizerA2 , 1 );
+
wxBoxSizer *sizerB = new wxBoxSizer(wxHORIZONTAL);
sizerB->Add( mSliderGeneral , 1 );
sizerB->Add( BtnMoveDown , 0 );
sizer->Add( sizerA , 0 );
sizer->Add( sizerB , 0 );
sizer->Add( sizerC , 0 );
-
SetSizer(sizer);
} // if
-
}
TransformWidgetPanel::~TransformWidgetPanel()
mMemoryMatrix->DeepCopy( t->GetMatrix() );
}
+void TransformWidgetPanel::OnSave(wxCommandEvent& event)
+{
+ wxFileDialog* FD = new wxFileDialog( 0,
+ _T("Save free plane configuratin"),
+ _T(""),
+ _T(""),
+ _T("(*.fpConf)|*.fpConf"),
+ wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
+ wxDefaultPosition);
+
+ int result_FD = FD->ShowModal();
+ // This line is need it by windows //EED
+ FD->SetReturnCode( result_FD );
+ if (FD->GetReturnCode()==wxID_OK)
+ {
+ std::string filename= (const char*) ( FD->GetPath().mb_str() );
+ FILE *ff;
+ ff = fopen( filename.c_str() , "w+" );
+ if (ff!=NULL)
+ {
+ fprintf(ff,"ActualPoint:\n");
+ fprintf(ff,"%f %f %f\n",mActualPoint[0], mActualPoint[1], mActualPoint[2] );
+ vtkMatrix4x4 *m = t->GetMatrix();
+ fprintf(ff,"Transform:\n");
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,0), m->GetElement(1,0), m->GetElement(2,0), m->GetElement(3,0) );
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,1), m->GetElement(1,1), m->GetElement(2,1), m->GetElement(3,1) );
+ fprintf(ff,"%f %f %f %f \n",m->GetElement(0,2), m->GetElement(1,2), m->GetElement(2,2), m->GetElement(3,2) );
+ fprintf(ff,"%f %f %f %f\n\n",m->GetElement(0,3), m->GetElement(1,3), m->GetElement(2,3), m->GetElement(3,3) );
+ fclose(ff);
+ } else { // else ff
+ printf("TransformWidgetPanel::OnSave ...Error... creating file \n");
+ } //ff
+ } // dialog box
+}
+
+void TransformWidgetPanel::OnLoad(wxCommandEvent& event)
+{
+ wxFileDialog* FD = new wxFileDialog( 0,
+ _T("Load groups of points .."),
+ _T(""),
+ _T(""),
+ _T("(*.fpConf)|*.fpConf"),
+ wxFD_OPEN | wxFD_FILE_MUST_EXIST,
+ wxDefaultPosition);
+
+ int result_FD = FD->ShowModal();
+ // This line is need it by windows //EED
+ FD->SetReturnCode( result_FD );
+ if (FD->GetReturnCode()==wxID_OK)
+ {
+ std::string filename= (const char*) ( FD->GetPath().mb_str() );
+ FILE *ff;
+ ff = fopen( filename.c_str() , "r" );
+ if (ff!=NULL)
+ {
+ char tmpStr[128];
+ float t0,t1,t2,t3;
+ fscanf(ff,"%s\n",tmpStr); // ActualPoint:
+ fscanf(ff,"%f %f %f\n",&t0,&t1,&t2);
+ mActualPoint[0]=t0;
+ mActualPoint[1]=t1;
+ mActualPoint[2]=t2;
+
+ vtkMatrix4x4 *m = t->GetMatrix();
+ fscanf(ff,"%s\n",tmpStr); // Transform:
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,0,t0);
+ m->SetElement(1,0,t1);
+ m->SetElement(2,0,t2);
+ m->SetElement(3,0,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,1,t0);
+ m->SetElement(1,1,t1);
+ m->SetElement(2,1,t2);
+ m->SetElement(3,1,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,2,t0);
+ m->SetElement(1,2,t1);
+ m->SetElement(2,2,t2);
+ m->SetElement(3,2,t3);
+ fscanf(ff,"%f %f %f %f\n",&t0,&t1,&t2,&t3);
+ m->SetElement(0,3,t0);
+ m->SetElement(1,3,t1);
+ m->SetElement(2,3,t2);
+ m->SetElement(3,3,t3);
+ t->Update();
+
+ mBox->bbSetOutputActualPoint( mActualPoint );
+ mBox->bbSignalOutputModification(std::string("ActualPoint"));
+ mBox->bbSetOutputOut( t );
+ mBox->bbSignalOutputModification(std::string("Out"));
+
+ fclose(ff);
+ } else { // else ff
+ printf("TransformWidgetPanel::OnLoad ...Error... reading file \n");
+ } //ff
+ } // dialog box
+
+}
+
+
void TransformWidgetPanel::OnMemoryGoBack(wxCommandEvent& event)
{
mActualPoint = mMemoryPoint;
#include <wx/combobox.h>
wxVtkMPR3DViewCntrlPanel::wxVtkMPR3DViewCntrlPanel(wxWindow *parent, wxVtkMPR3DView *wxvtkmpr3Dview, bool align )
-: wxPanel(parent, -1)
+//: wxPanel(parent, -1,wxDefaultPosition,wxDefaultSize)
+: wxPanel(parent, -1,wxDefaultPosition,wxSize(10,10) )
{
wxPanel *panel = this;
_wxvtkmpr3Dview = wxvtkmpr3Dview;
_ckBoxX = new wxCheckBox(panel,-1,_T("X "));
_positionX = new wxSlider(panel,-1,0,0,1, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
_ckBoxY = new wxCheckBox(panel,-1,_T("Y "));
- _positionY = new wxSlider(panel,-1,0,0,1, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
+ _positionY = new wxSlider(panel,-1,0,0,1, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
_ckBoxZ = new wxCheckBox(panel,-1,_T("Z "));
- _positionZ = new wxSlider(panel,-1,0,0,1, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
+ _positionZ = new wxSlider(panel,-1,0,0,1, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
_ckBoxXYZ = new wxCheckBox(panel,-1,_T("3D Axis "));
_ckBoxFixAxis2D = new wxCheckBox(panel,-1,_T("2D Fix Axis"));
- _opacityAxis = new wxSlider(panel,-1,99,0,100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
+ _opacityAxis = new wxSlider(panel,-1,99,0,100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
_ckBoxPlane = new wxCheckBox(panel,-1,_T("Plane"));
////EED 05Nov2012 _ckBox_BW_Color_Plane = new wxCheckBox(panel,-1,_T("GL/Color"));
_rdBackGroundBlack->SetValue(false);
_rdBackGroundWhite->SetValue(false);
- _positionX->SetSize(400,20);
- _positionY->SetSize(400,20);
- _positionZ->SetSize(400,20);
+// _positionX->SetSize(400,20);
+// _positionY->SetSize(400,20);
+// _positionZ->SetSize(400,20);
// Stereo
_cbStereo = new wxComboBox(panel, -1, _T(""), wxDefaultPosition, wxDefaultSize, 0, NULL,wxCB_READONLY );
panel->ClearBackground();
// panel->SetSize(400,50);
- sizer->FitInside(panel);
- panel->SetAutoLayout(true);
+// sizer->FitInside(panel);
panel->SetSizer(sizer);
+ panel->SetAutoLayout(true);
panel->Layout();
panel->SetEventHandler((wxEvtHandler*)this);
//this->UpdateControlPanel();
-
+ Layout();
}
//-------------------------------------------------------------------