Source/BubbleButton.cs

(开头部分) 15KB

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

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Diagnostics;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents a button used on BubbleBar control.
	/// </summary>
	[ToolboxItem(false),DesignTimeVisible(false),DefaultEvent("Click")]
	public class BubbleButton:Component,DevComponents.UI.ContentManager.IBlock
	{
		#region Private Variables
		private string m_TooltipText="";
//		private System.Drawing.Icon m_Icon=null;
		private int m_ImageIndex=-1;
		private int m_ImageIndexLarge=-1;
		private bool m_Enabled=true;
		private Image m_ImageCached=null;
		private Image m_ImageLargeCached=null;
		private Image m_Image=null;
		private Image m_ImageLarge=null;
		private Rectangle m_DisplayRectangle=Rectangle.Empty;
		private Rectangle m_MagnifiedDisplayRectangle=Rectangle.Empty;
		private bool m_MouseOver=false;
		private bool m_MouseDown=false;
		//private SubItemsCollection m_MenuItems;
		private BubbleButtonCollection m_ParentCollection=null;
		private string m_Name="";
		private bool m_Visible=true;
		private object m_Tag=null;
		private bool m_Focus=false;
		private eShortcut m_Shortcut=eShortcut.None;
		#endregion

		#region Events
		/// <summary>
		/// Occurs when user clicks the button.
		/// </summary>
		public event ClickEventHandler Click;
        /// <summary>
        /// Occurs when mouse enters the button.
        /// </summary>
        public event EventHandler MouseEnter;
        /// <summary>
        /// Occurs when mouse leaves the button.
        /// </summary>
        public event EventHandler MouseLeave;
		#endregion

		/// <summary>
		/// Creates new instance of button object.
		/// </summary>
		public BubbleButton()
		{
		}

		#region Public Properties
后面还有 512 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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