コード例 #1
0
ファイル: ComboBoxEx.cs プロジェクト: huamanhtuyen/VNACCS
        private void MarkupTextChanged()
        {
            m_TextMarkup = null;

            if (!TextMarkup.MarkupParser.IsMarkup(ref m_WatermarkText))
                return;

            m_TextMarkup = TextMarkup.MarkupParser.Parse(m_WatermarkText);
            ResizeMarkup();
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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();
        }
コード例 #4
0
 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);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
		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);
		}
コード例 #7
0
        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);
        }
コード例 #8
0
        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;
        }
コード例 #9
0
        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;
        }