Source/ToolTip.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace DevComponents.DotNetBar
{
    using System;
	using System.Windows.Forms;
	using System.Drawing;
	using System.Drawing.Text;
    using System.Drawing.Drawing2D;

    /// <summary>
    ///    Summary description for Tooltip.
    /// </summary>
    [System.ComponentModel.ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false)]
    public class ToolTip : System.Windows.Forms.Control
    {
		const long WS_POPUP=0x80000000L;
		const long WS_CLIPSIBLINGS=0x04000000L;
		const long WS_CLIPCHILDREN=0x02000000L;
		const long WS_EX_TOOLWINDOW=0x00000080L;
		const long WS_EX_TOPMOST=0x00000008L;

		// When set to true tooltip will be shown Immediately without delay
		//static bool bShowToolTip;
		
		private string m_ToolTip;
        private TextMarkup.BodyElement m_TextMarkup = null;
        private eDotNetBarStyle m_Style = eDotNetBarStyle.Office2003;
		private PopupShadow m_DropShadow=null;
        private bool m_AntiAlias = false;
        /// <summary>
        /// Gets or sets the rectangle of the control or item tooltip is displayed for.
        /// </summary>
        public Rectangle ReferenceRectangle = Rectangle.Empty;

        public ToolTip()
        {
			m_ToolTip="";
			this.SetStyle(ControlStyles.Selectable,false);
			this.SetStyle(ControlStyles.AllPaintingInWmPaint,true);
			this.SetStyle(ControlStyles.Opaque,true);
			this.SetStyle(ControlStyles.ResizeRedraw,true);
            this.Font=System.Windows.Forms.SystemInformation.MenuFont.Clone() as Font;
			this.BackColor=SystemColors.Control;
			this.ForeColor=SystemColors.ControlText;
        }

		public new string Text
		{
			get
			{
				return m_ToolTip;
			}
			set
			{
				m_ToolTip=value;
                if (MarkupEnabled && TextMarkup.MarkupParser.IsMarkup(ref m_ToolTip))
                    m_TextMarkup = TextMarkup.MarkupParser.Parse(m_ToolTip);
                if (m_TextMarkup != null)
                    AntiAlias = true;
			}
		}
后面还有 262 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。