Beispiel #1
0
        //모터 포지션 패널 사이즈 변경하는 함수 한라 전용
        //public void SetMotrPanel(int _iMaxPos, Control _wcParent)
        //{
        //    int iGroupBoxHghtSize = 28; //패널 사이즈 제외한 그룹박스 사이즈
        //    int iCellHeight = iGroupBoxHghtSize + ((PM.GetMotrPosHeight()+1) * _iMaxPos)+1 ;
        //    _wcParent.Height = iCellHeight;
        //
        //    int iGroupBoxWidthSize = 10;
        //    int iCellWidth = iGroupBoxWidthSize + PM.GetMotrPosWidth();
        //    _wcParent.Width = iCellWidth;
        //}

        public void SetMotrPanel(int _iMaxPos, Control _wcParent)
        {
            int iGroupBoxHghtSize = 46; //패널 사이즈 제외한 그룹박스 사이즈
            int iCellHeight       = iGroupBoxHghtSize + ((PM.GetMotrPosHeight() + 1) * _iMaxPos) + 1;

            _wcParent.Height = iCellHeight;

            //int iGroupBoxWidthSize = 0;
            //int iCellWidth = iGroupBoxWidthSize + PM.GetMotrPosWidth();
            //_wcParent.Width = iCellWidth;
        }