Source/SideBarPanelItem.cs

(开头部分) 85KB

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

using System;
using System.Drawing;
using System.Drawing.Design;
using System.ComponentModel;
using System.ComponentModel.Design;
using DevComponents.DotNetBar.Design;
using DevComponents.DotNetBar.Rendering;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents the Side-Bar Panel item.
	/// </summary>
	[System.ComponentModel.ToolboxItem(false),Designer(typeof(SideBarPanelItemDesigner))]
	public class SideBarPanelItem:ImageItem,IDesignTimeProvider
	{
		private int m_TopItemIndex=0;
		private bool m_ScrollDownButton=false;
		private Rectangle[] m_ScrollButtonRect={Rectangle.Empty,Rectangle.Empty};
		private int m_ScrollButtonHot=-1;
		private int m_Margin=3;
		private bool m_MouseOver=false;
		private bool m_MouseDown=false;
		private Rectangle m_PanelRect=Rectangle.Empty;
		//private Color m_BackColor=SystemColors.Control;
		private Color m_ForeColor=SystemColors.ControlText;
		private Color m_HotForeColor=Color.Empty;
		private bool m_HotFontUnderline=false;
		private bool m_HotFontBold=false;
        private bool m_FontBold = false;
		private eBarImageSize m_ItemImageSize=eBarImageSize.Default;
		private System.Drawing.Point m_MouseDownPt;
		// Used to host items that have windows associated with them....
		private SideBarPanelControlHost m_ControlHost=null;

		private ItemStyle m_BackgroundStyle=new ItemStyle();
		private ItemStyle m_HeaderStyle=null, m_HeaderHotStyle=null, m_HeaderMouseDownStyle=null;
		private ItemStyle m_HeaderSideStyle=null, m_HeaderSideHotStyle, m_HeaderSideMouseDownStyle;

		private bool m_WordWrap=false;

		private const string INFO_EMPTYPANEL="Right-click header and choose Add New Button or use SubItems collection to create new buttons.";

		private System.Drawing.Image m_Image;
		private int m_ImageIndex=-1; // Image index if image from ImageList is used
		private System.Drawing.Image m_HoverImage;
		private int m_HoverImageIndex=-1; // Image index if image from ImageList is used
		private System.Drawing.Image m_PressedImage;
		private int m_PressedImageIndex=-1;  // Image index if image from ImageList is used
		System.Drawing.Icon m_Icon=null;
		private System.Drawing.Image m_ImageCachedIdx=null;
		private ItemPaintArgs _ItemPaintArgs=null;
		private eSideBarAppearance m_Appearance=eSideBarAppearance.Traditional;
		
		private const int FLAT_NOIMAGESIDEWIDTH=26;
		private const int IMAGE_MARGIN=2;

		private bool m_IgnoreNextClick=false;
		private DateTime m_IgnoreClickDateTime=DateTime.MinValue;
		private Rectangle m_IgnoreScrollRect=Rectangle.Empty;
后面还有 2574 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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