Source/Ribbon/SuperTooltip.cs
(开头部分) 56KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Collections;
using System.Reflection;
using DevComponents.DotNetBar.Controls;
namespace DevComponents.DotNetBar
{
[ToolboxBitmap(typeof(SuperTooltip),"Ribbon.SuperTooltip.ico"),ToolboxItem(true), ProvideProperty("SuperTooltip",typeof(IComponent)),
System.Runtime.InteropServices.ComVisible(false), Designer(typeof(Design.SuperTooltipDesigner))]
public class SuperTooltip : Component , IExtenderProvider
{
#region Private Variables & Constructor
/// <summary>
/// Occurs just before tooltip is displayed and gives you opportunity to cancel showing of tooltip.
/// </summary>
public event SuperTooltipEventHandler BeforeTooltipDisplay;
/// <summary>
/// Occurs after tooltip has been closed.
/// </summary>
public event EventHandler TooltipClosed;
/// <summary>
/// Occurs when text markup link is clicked. Markup links can be created using "a" tag, for example:
/// <a name="MyLink">Markup link</a>
/// </summary>
public event MarkupLinkClickEventHandler MarkupLinkClick;
private bool m_PositionBelowControl = true;
private Hashtable m_SuperTooltipInfo = new Hashtable();
private SuperTooltipControl m_Tooltip = null;
private Timer m_ActiveWindowTimer = null;
private Timer m_HideDelayedTimer = null;
private bool m_CheckOnScreenPosition = true;
private IntPtr m_ActiveWindowPtr = IntPtr.Zero;
private int m_TooltipDuration = 20;
private long m_DurationDisplayed = 0;
private SuperTooltipInfo m_DefaultTooltipSettings = new SuperTooltipInfo();
private static SuperTooltipInfo s_DefaultSuperTooltipInfo = null;
private Font m_DefaultFont=null;
private int m_HoverCount=0;
private int m_HoverTrigger=2;
private Size m_MinimumTooltipSize = new Size(150, 24);
private bool m_Enabled = true;
private bool m_AntiAlias = true;
private int m_DelayTooltipHideDuration = 0;
private bool m_ShowTooltipImmediately = false;
private bool m_IgnoreFormActiveState = false;
private int m_MaximumWidth = 0;
private bool m_CheckTooltipPosition = true;
private bool m_ShowTooltipDescription = true;
private bool m_ShowTooltipForFocusedControl = true;
private const string AdvTree_NODE_CLASS_NAME = "DevComponents.Tree.Node";
private const string ADVTREE_NODE_CLASS_NAME = "DevComponents.AdvTree.Node";
#endregion
后面还有 1306 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。