Пример #1
0
        public MainForm(int clientW, int clientH)
        {
            InitializeComponent();
            
            m_dispatchInput = new InputMessageDispatch();

            // adjust render target window
            int adjustH = clientH 
                + mainToolBar.Height 
                + mainStatus.Height
                + menuMain.Height;

            this.ClientSize = new Size(clientW, adjustH);

            m_renderTargetWnd = new RenderTargetWnd(m_dispatchInput);
            m_renderTargetWnd.Parent = this;
            m_renderTargetWnd.Location = new Point(0, mainToolBar.Height + menuMain.Height);
            m_renderTargetWnd.Name = "RenderTargetWnd";
            m_renderTargetWnd.Size = new Size(clientW, clientH);
            m_renderTargetWnd.TabIndex = 9;
            m_renderTargetWnd.Visible = true;
            
            // create tools dialogs
            m_heightMapToolsDlg = new HeightmapToolsDlg();
            m_heightMapToolsDlg.Show();

            m_brushDlg = new BrushDlg();         
            m_brushDlg.Show();      
        }
Пример #2
0
        public MainForm(int clientW, int clientH)
        {
            InitializeComponent();

            m_dispatchInput = new InputMessageDispatch();

            // adjust render target window
            int adjustH = clientH
                          + mainToolBar.Height
                          + mainStatus.Height
                          + menuMain.Height;

            this.ClientSize = new Size(clientW, adjustH);

            m_renderTargetWnd          = new RenderTargetWnd(m_dispatchInput);
            m_renderTargetWnd.Parent   = this;
            m_renderTargetWnd.Location = new Point(0, mainToolBar.Height + menuMain.Height);
            m_renderTargetWnd.Name     = "RenderTargetWnd";
            m_renderTargetWnd.Size     = new Size(clientW, clientH);
            m_renderTargetWnd.TabIndex = 9;
            m_renderTargetWnd.Visible  = true;

            // create tools dialogs
            m_heightMapToolsDlg = new HeightmapToolsDlg();
            m_heightMapToolsDlg.Show();

            m_brushDlg = new BrushDlg();
            m_brushDlg.Show();
        }