예제 #1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (disposing && editBox != null)
            {
                editBox.Dispose();
                editBox = null;
            }
        }
예제 #2
0
파일: ChartTip.cs 프로젝트: namit3/BlueMind
            public ChartTipControl()
            {
                webBrowser = new HtmlEditBox();
                labLink    = new LinkLabel();

                this.SuspendLayout();

                webBrowser.ReadOnly        = true;
                webBrowser.VisibleChanged += webBrowser_VisibleChanged;

                labLink.VisibleChanged += labLink_VisibleChanged;
                labLink.AutoSize        = true;

                Controls.Add(webBrowser);
                Controls.Add(labLink);
                this.ResumeLayout();
            }
예제 #3
0
        void InitializeComponent()
        {
            panel1     = new Panel();
            editBox    = new HtmlEditBox();
            codeBox    = new HtmlCodeEditor();
            toolStrip1 = new HtmlEditToolStrip(this);
            panel1.SuspendLayout();
            SuspendLayout();

            //
            editBox.Dock         = DockStyle.Fill;
            editBox.TabIndex     = 0;
            editBox.ReadOnly     = ReadOnly;
            editBox.TextChanged += editBox_TextChanged;

            //
            codeBox.Dock         = DockStyle.Fill;
            codeBox.ReadOnly     = ReadOnly;
            codeBox.TextChanged += codeBox_TextChanged;

            //
            toolStrip1.TabIndex = 1;
            //toolStrip1.LayoutStyle = ToolStripLayoutStyle.Flow;
            toolStrip1.Fonts      = DefaultFonts;
            toolStrip1.Dock       = DockStyle.Top;
            toolStrip1.RenderMode = ToolStripRenderMode.System;

            //
            panel1          = new Panel();
            panel1.Dock     = DockStyle.Fill;
            panel1.TabIndex = 0;

            //
            Controls.AddRange(new Control[] { panel1, toolStrip1 });
            OnViewTypeChanged();
            panel1.ResumeLayout();
            ResumeLayout();
        }
예제 #4
0
 public HtmlEditToolStrip(HtmlEditor editor)
     : this()
 {
     Editor  = editor;
     htmlBox = editor.EditBox;
 }