private void InitializeComponent() { m_ControlsFont = new Font(FontName, 8); this.SuspendLayout(); // // HTMLContentControlCore // this.ClientSize = new Size(603, 716); this.Name = "HTMLContentControlCore"; this.ResizeRedraw = true; this.Margin = new System.Windows.Forms.Padding(0); this.Padding = new System.Windows.Forms.Padding(0); this.Font = m_ControlsFont; int bannerHeight = RhinoLicensing.CreateBanner(m_TypeID, this, m_Trans, 0 /*5*/); m_HtmlEditControl = new TDLHtmlEditorControl(m_ControlsFont, m_Trans); m_HtmlEditControl.Name = "m_HtmlEditControl"; m_HtmlEditControl.Location = new Point(0, bannerHeight); m_HtmlEditControl.Size = new Size(this.ClientSize.Width, this.ClientSize.Height - bannerHeight); m_HtmlEditControl.TextChanged += new System.EventHandler(OnInputTextChanged); m_HtmlEditControl.LostFocus += new System.EventHandler(OnInputTextLostFocus); m_HtmlEditControl.HtmlNavigation += new MSDN.Html.Editor.HtmlNavigationEventHandler(OnNavigateLink); m_HtmlEditControl.NeedLinkTooltip += new NeedLinkTooltipEventHandler(OnNeedLinkTooltip); this.Controls.Add(this.m_HtmlEditControl); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.SuspendLayout(); // // HTMLContentControlCore // this.ClientSize = new Size(603, 716); this.Name = "HTMLContentControlCore"; this.ResizeRedraw = true; this.Margin = new System.Windows.Forms.Padding(0); this.Padding = new System.Windows.Forms.Padding(0); this.Font = m_ControlsFont; m_HtmlEditControl = new TDLHtmlEditorControl(m_ControlsFont, m_Trans); m_HtmlEditControl.Name = "m_HtmlEditControl"; m_HtmlEditControl.Bounds = ClientRectangle; m_HtmlEditControl.TextChanged += new System.EventHandler(OnInputTextChanged); m_HtmlEditControl.LostFocus += new System.EventHandler(OnInputTextLostFocus); m_HtmlEditControl.HtmlNavigation += new MSDN.Html.Editor.HtmlNavigationEventHandler(OnNavigateLink); m_HtmlEditControl.NeedLinkTooltip += new NeedLinkTooltipEventHandler(OnNeedLinkTooltip); this.Controls.Add(this.m_HtmlEditControl); this.ResumeLayout(false); this.PerformLayout(); }
// -------------------------------------------------------------------------------------- public HTMLContentControlCore(String typeId, IntPtr hwndParent, Translator trans) { m_TypeID = typeId; m_HwndParent = hwndParent; m_Trans = trans; m_ControlsFont = new Font("Tahoma", 8); m_HtmlEditControl = new TDLHtmlEditorControl(m_ControlsFont, m_Trans); m_PrefsDlg = new HTMLPreferencesDlg(m_ControlsFont, m_Trans); if (s_CoreList.Count > 0) { UpdateWatermark(s_CoreList.First().m_PrefsDlg); } s_CoreList.Add(this); InitializeComponent(); }