Exemple #1
0
        public ImageDoc()
        {
            InitializeComponent();

            _hWndControl = new HWndCtrl(mCtrl_HWindow);
            _hWndControl.setContextMenuStrip(hv_MenuStrip);
            _roiController = new ROIController();
            _hWndControl.setROIController(_roiController);
            _hWndControl.setViewState(HWndCtrl.MODE_VIEW_NONE);
            _hWndControl.showZoomPercent = new HWndCtrl.ShowZoomPercent(showZoomPercent);
            hWindowControl = this.mCtrl_HWindow;
            try { hv_window = this.mCtrl_HWindow.hvppleWindow; } catch (Exception) { }//这里添加控件库时会报异常,运行不会,不知道为什么

            //设定鼠标按下时图标的形状
            //'arrow'箭头
            //'default'
            //'crosshair'十字
            //'text I-beam'输入光标
            //'Slashed circle'禁止
            //'Size All'拖动光标,十字方向
            //'Size NESW'拖动光标,左下右上
            //'Size S'上下拖动
            //'Size NWSE'左上右下
            //'Size WE'水平方向
            //'Vertical Arrow'竖直向中箭头
            //'Hourglass'等待
            //设定鼠标按下时图标的形状

            //hv_window.SetMshape("hand");

            if (hv_window != null)
            {
                hv_window.SetWindowParam("background_color", "dim gray");
            }

            m_CtrlHStatusLabelCtrl.Visible = false;
        }
Exemple #2
0
 /// <summary>Registers the HWndCtrl to this ROIController instance</summary>
 public void setViewController(HWndCtrl view)
 {
     viewController = view;
 }