Source/Ribbon/SuperTooltipControl.cs

(开头部分) 51KB

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

using System;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;
using DevComponents.DotNetBar.Rendering;

namespace DevComponents.DotNetBar
{
    /// <summary>
    /// Represents SuperTooltipControl.
    /// </summary>
    [ToolboxItem(false)]
    public class SuperTooltipControl:PanelControl
    {
        #region Events
        
        #endregion

        #region Private variables, Constructor
        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;

        private string m_HeaderText="";
        private TextMarkup.BodyElement m_HeaderMarkup = null;
        private string m_FooterText = "";
        private TextMarkup.BodyElement m_FooterMarkup = null;
        private Image m_FooterImage = null;
        private Image m_BodyImage = null;
        private Size m_MinimumTooltipSize = new Size(100,18);
        private bool m_HeaderVisible = true;
        private bool m_FooterVisible = true;
        private bool m_FooterSeparator = true;
        private int m_FooterImageSpacing = 8;
        private PopupShadow m_DropShadow = null;
        private bool m_StandardControl = false;
        private TextMarkup.BodyElement m_BodyMarkup = null;
        private bool m_MouseActivateEnabled = true;
        private int m_MaximumWidth = 0;
        private bool m_ShowTooltipDescription = true;

        /// <summary>
        ///     Default constructor.
        /// </summary>
        public SuperTooltipControl():base()
        {
            
        }
        #endregion

        #region Internal Implementation
        /// <summary>
        /// Gets or sets whether complete tooltip is shown including header, body and footer. Default value is true. When set to false only tooltip header will be shown.
        /// Providing this option to your end users as part of your application setting allows them to customize the level of information displayed and reduce it after they are familiar with your product.
        /// </summary>
        [Browsable(true), DefaultValue(true), Category("Behavior"), Description("Indicates whether complete tooltip is shown including header, body and footer. When set to false only tooltip header is shown.")]
        public bool ShowTooltipDescription
后面还有 1166 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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