Пример #1
0
        // PRIVATE ------------------------------------------------------------------------------

        private void InitializeComponent()
        {
            m_TaskIcons    = new UIExtension.TaskIcon(m_HwndParent);
            m_ControlsFont = new Font(FontName, 8, FontStyle.Regular);

            m_MindMap        = new TdlMindMapControl(m_Trans, m_TaskIcons);
            m_MindMap.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_MindMap.Font   = m_ControlsFont;

            if (VisualStyleRenderer.IsSupported)
            {
                m_MindMap.BorderStyle = BorderStyle.FixedSingle;
            }
            else
            {
                m_MindMap.BorderStyle = BorderStyle.Fixed3D;
            }

            m_MindMap.SelectionChange += new SelectionChangeEventHandler(OnMindMapSelectionChange);
            m_MindMap.DragDropChange  += new DragDropChangeEventHandler(OnMindMapDragDrop);
            m_MindMap.EditTaskLabel   += new EditTaskLabelEventHandler(OnMindMapEditTaskLabel);
            m_MindMap.EditTaskIcon    += new EditTaskIconEventHandler(OnMindMapEditTaskIcon);
            m_MindMap.EditTaskDone    += new EditTaskCompletionEventHandler(OnMindMapEditTaskCompletion);

            this.Controls.Add(m_MindMap);
        }
        // PRIVATE ------------------------------------------------------------------------------

        private void InitializeComponent()
        {
            m_TaskIcons    = new UIExtension.TaskIcon(m_HwndParent);
            m_ControlsFont = new Font(FontName, 8, FontStyle.Regular);

            m_MindMap = new TdlMindMapControl(m_Trans, m_TaskIcons);

            int bannerHeight = RhinoLicensing.CreateBanner(m_TypeId, m_UiName, this, m_Trans, -1);

            m_MindMap.Location = new Point(0, bannerHeight);
            m_MindMap.Size     = new Size(this.ClientSize.Width, this.ClientSize.Height - bannerHeight);

            m_MindMap.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_MindMap.Font   = m_ControlsFont;

            if (VisualStyleRenderer.IsSupported)
            {
                m_MindMap.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            }
            else
            {
                m_MindMap.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            }

            m_MindMap.SelectionChange += new SelectionChangeEventHandler(OnMindMapSelectionChange);
            m_MindMap.DragDropChange  += new DragDropChangeEventHandler(OnMindMapDragDrop);
            m_MindMap.EditTaskLabel   += new EditTaskLabelEventHandler(OnMindMapEditTaskLabel);
            m_MindMap.EditTaskIcon    += new EditTaskIconEventHandler(OnMindMapEditTaskIcon);
            m_MindMap.EditTaskDone    += new EditTaskCompletionEventHandler(OnMindMapEditTaskCompletion);

            this.Controls.Add(m_MindMap);
        }
Пример #3
0
        // PRIVATE ------------------------------------------------------------------------------

        private void InitializeComponent()
        {
            m_TaskIcons    = new UIExtension.TaskIcon(m_HwndParent);
            m_ControlsFont = new Font(FontName, 8, FontStyle.Regular);

            m_MindMap        = new TdlMindMapControl(m_Trans, m_TaskIcons);
            m_MindMap.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_MindMap.Font   = m_ControlsFont;

            if (VisualStyleRenderer.IsSupported)
            {
                m_MindMap.BorderStyle = BorderStyle.FixedSingle;
            }
            else
            {
                m_MindMap.BorderStyle = BorderStyle.Fixed3D;
            }

            m_MindMap.SelectionChange += new SelectionChangeEventHandler(OnMindMapSelectionChange);
            m_MindMap.DragDropChange  += new DragDropChangeEventHandler(OnMindMapDragDrop);
            m_MindMap.EditTaskLabel   += new EditTaskLabelEventHandler(OnMindMapEditTaskLabel);
            m_MindMap.EditTaskIcon    += new EditTaskIconEventHandler(OnMindMapEditTaskIcon);
            m_MindMap.EditTaskDone    += new EditTaskCompletionEventHandler(OnMindMapEditTaskCompletion);

            this.Controls.Add(m_MindMap);

            var comboLabel = new Label();

            comboLabel.Font     = m_ControlsFont;
            comboLabel.Text     = m_Trans.Translate("Alignment");
            comboLabel.AutoSize = true;
            comboLabel.Location = new Point(-2, 8);

            this.Controls.Add(comboLabel);

            m_AlignmentCombo               = new ComboBox();
            m_AlignmentCombo.Font          = m_ControlsFont;
            m_AlignmentCombo.Width         = 120;
            m_AlignmentCombo.Height        = 200;
            m_AlignmentCombo.Location      = new Point(comboLabel.Right + 10, 4);
            m_AlignmentCombo.DropDownStyle = ComboBoxStyle.DropDownList;

            m_AlignmentCombo.Items.Add(m_Trans.Translate("Centre"));
            m_AlignmentCombo.Items.Add(m_Trans.Translate("Left"));
            m_AlignmentCombo.Items.Add(m_Trans.Translate("Right"));

            m_AlignmentCombo.SelectedIndexChanged += new EventHandler(OnMindMapStyleChanged);

            this.Controls.Add(m_AlignmentCombo);
        }
Пример #4
0
        // PRIVATE ------------------------------------------------------------------------------

        private void InitializeComponent()
        {
            m_TaskIcons    = new UIExtension.TaskIcon(m_HwndParent);
            m_ControlsFont = new Font(FontName, 8, FontStyle.Regular);

            m_MindMap        = new TdlMindMapControl(m_Trans, m_TaskIcons);
            m_MindMap.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_MindMap.Font   = m_ControlsFont;

            if (VisualStyleRenderer.IsSupported)
            {
                m_MindMap.BorderStyle = BorderStyle.FixedSingle;
            }
            else
            {
                m_MindMap.BorderStyle = BorderStyle.Fixed3D;
            }

            m_MindMap.SelectionChange += new SelectionChangeEventHandler(OnMindMapSelectionChange);
            m_MindMap.DragDropChange  += new DragDropChangeEventHandler(OnMindMapDragDrop);
            m_MindMap.EditTaskLabel   += new EditTaskLabelEventHandler(OnMindMapEditTaskLabel);
            m_MindMap.EditTaskIcon    += new EditTaskIconEventHandler(OnMindMapEditTaskIcon);
            m_MindMap.EditTaskDone    += new EditTaskCompletionEventHandler(OnMindMapEditTaskCompletion);

            this.Controls.Add(m_MindMap);

            // Alignment combo and label
            var alignLabel = CreateLabel("Alignment", null);

            this.Controls.Add(alignLabel);

            m_AlignmentCombo = new MindMapAlignmentComboBox(m_Trans);
            m_AlignmentCombo.DropDownClosed += new EventHandler(OnAlignmentComboClosed);

            InitialiseCombo(m_AlignmentCombo, alignLabel, 100);
            this.Controls.Add(m_AlignmentCombo);

            // Options combo and label
            var optionsLabel = CreateLabel("Options", m_AlignmentCombo);

            this.Controls.Add(optionsLabel);

            m_OptionsCombo = new MindMapOptionsComboBox(m_Trans);
            m_OptionsCombo.DropDownClosed += new EventHandler(OnOptionsComboClosed);
            m_OptionsCombo.DrawMode        = DrawMode.OwnerDrawFixed;

            InitialiseCombo(m_OptionsCombo as ComboBox, optionsLabel, 150);
            this.Controls.Add(m_OptionsCombo);
        }
Пример #5
0
        // PRIVATE ------------------------------------------------------------------------------

        private void InitializeComponent()
        {
            m_MindMap = new TdlMindMapControl(m_Trans, m_TaskIcons);

            m_MindMap.Anchor      = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_MindMap.Font        = m_ControlsFont;
            m_MindMap.Size        = ClientRectangle.Size;
            m_MindMap.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

            m_MindMap.SelectionChange += new SelectionChangeEventHandler(OnMindMapSelectionChange);
            m_MindMap.DragDropChange  += new DragDropChangeEventHandler(OnMindMapDragDrop);
            m_MindMap.EditTaskLabel   += new EditTaskLabelEventHandler(OnMindMapEditTaskLabel);
            m_MindMap.EditTaskIcon    += new EditTaskIconEventHandler(OnMindMapEditTaskIcon);
            m_MindMap.EditTaskDone    += new EditTaskCompletionEventHandler(OnMindMapEditTaskCompletion);

            this.Controls.Add(m_MindMap);
        }