//--------------------------------------------------------- CACTIVE_Parameters::CACTIVE_Parameters(wxWindow *pParent) : wxPanel(pParent, ID_WND_ACTIVE_PARAMETERS, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER) { m_pItem = NULL; m_pControl = new CParameters_Control(this); //----------------------------------------------------- m_Btn_Apply = new wxButton(this, ID_BTN_APPLY , CTRL_Get_Name(ID_BTN_APPLY) , wxPoint(0, 0)); m_Btn_Restore = new wxButton(this, ID_BTN_RESTORE , CTRL_Get_Name(ID_BTN_RESTORE) , wxPoint(0, 0)); m_Btn_Execute = new wxButton(this, ID_BTN_EXECUTE , CTRL_Get_Name(ID_BTN_EXECUTE) , wxPoint(0, 0)); m_Btn_Load = new wxButton(this, ID_BTN_LOAD , CTRL_Get_Name(ID_BTN_LOAD) , wxPoint(0, 0)); m_Btn_Save = new wxButton(this, ID_BTN_SAVE , CTRL_Get_Name(ID_BTN_SAVE) , wxPoint(0, 0)); m_Btn_Apply ->Show(false); m_Btn_Restore ->Show(false); m_Btn_Execute ->Show(false); m_Btn_Load ->Show(false); m_Btn_Save ->Show(false); m_btn_height = m_Btn_Apply->GetDefaultSize().y; m_pControl->Set_Parameters(NULL); Set_Parameters(NULL); }
//--------------------------------------------------------- CACTIVE_Attributes::CACTIVE_Attributes(wxWindow *pParent) : wxPanel(pParent, ID_WND_INFO_ATTRIBUTES)//, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER) { m_pAttributes = new CSG_Table; m_pControl = new CVIEW_Table_Control(this, m_pAttributes, TABLE_CTRL_FIXED_TABLE|TABLE_CTRL_COL1ISLABEL); m_pItem = NULL; //----------------------------------------------------- m_Btn_Apply = new wxButton(this, ID_BTN_APPLY , CTRL_Get_Name(ID_BTN_APPLY) , wxPoint(0, 0)); m_Btn_Restore = new wxButton(this, ID_BTN_RESTORE , CTRL_Get_Name(ID_BTN_RESTORE) , wxPoint(0, 0)); m_btn_height = m_Btn_Apply->GetDefaultSize().y; m_pSelections = new wxChoice(this, ID_COMBOBOX_SELECT, wxDefaultPosition, wxDefaultSize, 0, NULL, 0); //----------------------------------------------------- m_pAttributes->Set_Modified(false); }