⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 axstatusbar.cs

📁 C#实现DHTML编辑器功能!
💻 CS
字号:
// DINAMIC XML Editor
//
// Copyright (c) 2002-2003 Dusan Hlavaty
// mailto: duddo@atlas.cz
//
// This software is licensed under the terms of
// GNU General Public license
//
using System;
using System.Collections;
using System.Drawing;
using System.Windows.Forms;

namespace XML_editor.MyComponents
{
	/// <summary>
	/// Reprezentuje Status Bar - je odvodeny od .NET-oveho. Ako panely nevyuzivat
	/// <see cref="StatusBarPanel"/> ale moje vlastne <see cref="AxProgressStatusBarPanel"/> a
	/// <see cref="AxStatusBarPanel"/>
	/// </summary>
	public class AxStatusBar : System.Windows.Forms.StatusBar
	{
		// -------------------------------------------------------------------------
		/// <summary>
		/// Inicializuje instanciu <see cref="AxStatusBar"/>
		/// </summary>
		public AxStatusBar()
		{
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Overridovana metoda
		/// </summary>
		/// <param name="sbdievent"></param>
		protected override void OnDrawItem(StatusBarDrawItemEventArgs sbdievent)
		{

			if (sbdievent.Panel is AxStatusBarPanel) 
			{
				((AxStatusBarPanel)sbdievent.Panel).DrawPanel(sbdievent);
			}
			else 
			{
				if (sbdievent.Panel is AxProgressStatusBarPanel)
				{
					((AxProgressStatusBarPanel)sbdievent.Panel).DrawPanel(sbdievent);
				} 
				else
				{
					base.OnDrawItem(sbdievent);
				}
			}

		}

	} // class AxStatusBar
} // namespace XML_editor.MyComponents

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -