#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();
}
//-------------------------------------------------------------------