private void MarkupTextChanged() { m_TextMarkup = null; if (!TextMarkup.MarkupParser.IsMarkup(ref m_WatermarkText)) return; m_TextMarkup = TextMarkup.MarkupParser.Parse(m_WatermarkText); ResizeMarkup(); }
private void MarkupTextChanged() { if (m_TextMarkup != null) m_TextMarkup.HyperLinkClick -= TextMarkupLinkClick; m_TextMarkup = null; if (!IsMarkupSupported) return; if (!TextMarkup.MarkupParser.IsMarkup(ref m_Text)) return; m_TextMarkup = TextMarkup.MarkupParser.Parse(m_Text); if(m_TextMarkup!=null) m_TextMarkup.HyperLinkClick += TextMarkupLinkClick; }
private void UpdateDisplay() { string text = this.Text; if (_TextMarkup != null) { _TextMarkup.MouseLeave(this); _TextMarkup.HyperLinkClick -= new EventHandler(TextMarkupLinkClicked); _TextMarkup = null; } if (TextMarkup.MarkupParser.IsMarkup(ref text)) _TextMarkup = TextMarkup.MarkupParser.Parse(text); if (_TextMarkup != null) { _TextMarkup.HyperLinkClick += new EventHandler(TextMarkupLinkClicked); } CreateReflection(); this.Invalidate(); }
protected override void OnTextChanged(EventArgs e) { string text = this.Text; if (TextMarkup.MarkupParser.IsMarkup(ref text)) { _TextMarkup = TextMarkup.MarkupParser.Parse(text); } else _TextMarkup = null; this.Invalidate(); base.OnTextChanged(e); }
protected override void OnTextChanged(EventArgs e) { string s = this.Text; if (TextMarkup.MarkupParser.IsMarkup(ref s)) { m_BodyMarkup = TextMarkup.MarkupParser.Parse(s); if(m_BodyMarkup!=null) m_BodyMarkup.HyperLinkClick += new EventHandler(Markup_HyperLinkClick); } else m_BodyMarkup = null; base.OnTextChanged(e); }
private void MarkupTextChanged() { if (!IsMarkupSupported) return; if(m_TextMarkup!=null) m_TextMarkup.HyperLinkClick -= new EventHandler(this.TextMarkupLinkClick); m_TextMarkup = null; if (!TextMarkup.MarkupParser.IsMarkup(ref m_Text)) return; m_TextMarkup = TextMarkup.MarkupParser.Parse(m_Text); if(m_TextMarkup!=null) m_TextMarkup.HyperLinkClick += new EventHandler(TextMarkupLinkClick); }
protected override void OnTextChanged(EventArgs e) { string text=this.Text; if (m_TextMarkup != null) { m_TextMarkup.MouseLeave(this); m_TextMarkup.HyperLinkClick -= new EventHandler(TextMarkupLinkClicked); m_TextMarkup = null; } if (_TextMarkupEnabled && TextMarkup.MarkupParser.IsMarkup(ref text)) m_TextMarkup = TextMarkup.MarkupParser.Parse(text); if (m_TextMarkup != null) { m_TextMarkup.HyperLinkClick += new EventHandler(TextMarkupLinkClicked); RefreshTextClientRectangle(); } base.OnTextChanged(e); }
private void MarkupTextChanged() { if (_TextMarkup != null) _TextMarkup.HyperLinkClick -= TextMarkupLinkClick; _TextMarkup = null; if (!_TextMarkupEnabled) return; if (!TextMarkup.MarkupParser.IsMarkup(ref _Text)) return; _TextMarkup = TextMarkup.MarkupParser.Parse(_Text); if (_TextMarkup != null) _TextMarkup.HyperLinkClick += TextMarkupLinkClick; }
private void TitleTextMarkupUpdate() { if (_TitleTextMarkup != null) _TitleTextMarkup.HyperLinkClick -= TitleTextMarkupLinkClicked; _TitleTextMarkup = null; if (!_TextMarkupEnabled) return; if (!TextMarkup.MarkupParser.IsMarkup(ref _TitleText)) return; _TitleTextMarkup = TextMarkup.MarkupParser.Parse(_TitleText); if (_TitleTextMarkup != null) _TitleTextMarkup.HyperLinkClick += TitleTextMarkupLinkClicked; }