亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dockingmanager.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 5 頁
字號:
// *****************************************************************************
// 
//  (c) Crownwood Consulting Limited 2002 
//  All rights reserved. The software and associated documentation 
//  supplied hereunder are the proprietary information of Crownwood Consulting 
//	Limited, Haxey, North Lincolnshire, England and are supplied subject to 
//	licence terms.
// 
//  Magic Version 1.7 	www.dotnetmagic.com
// *****************************************************************************

using System;
using System.IO;
using System.Xml;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Xml.Serialization;
using Microsoft.Win32;
using Crownwood.Magic.Menus;
using Crownwood.Magic.Common;
using Crownwood.Magic.Docking;
using Crownwood.Magic.Collections;

namespace Crownwood.Magic.Docking
{
    public enum PropogateName
    {
        BackColor,
        ActiveColor,
        ActiveTextColor,
        InactiveTextColor,
        ResizeBarColor,
        ResizeBarVector,
        CaptionFont,
		TabControlFont,
        ZoneMinMax,
        PlainTabBorder
    }

    public class DockingManager
    {
        // Instance fields
        protected bool _zoneMinMax;
        protected bool _insideFill;
        protected bool _autoResize;
        protected bool _firstHalfWidth;
        protected bool _firstHalfHeight;
        protected int _surpressVisibleEvents;
        protected int _resizeBarVector;
        protected Size _innerMinimum;
        protected Color _backColor;
        protected Color _activeColor;
        protected Color _activeTextColor;
        protected Color _inactiveTextColor;
        protected Color _resizeBarColor;
        protected Font _captionFont;
		protected Font _tabControlFont;
        protected bool _defaultBackColor;
        protected bool _defaultActiveColor;
        protected bool _defaultActiveTextColor;
        protected bool _defaultInactiveTextColor;
        protected bool _defaultResizeBarColor;
        protected bool _defaultCaptionFont;
		protected bool _defaultTabControlFont;
        protected bool _plainTabBorder;
        protected Control _innerControl;
        protected Control _outerControl;
        protected AutoHidePanel _ahpTop;
        protected AutoHidePanel _ahpLeft;
        protected AutoHidePanel _ahpBottom;
        protected AutoHidePanel _ahpRight;
        protected VisualStyle _visualStyle;
        protected ContainerControl _container;
        protected ManagerContentCollection _contents;

        public delegate void ContentHandler(Content c, EventArgs cea);
        public delegate void ContentHidingHandler(Content c, CancelEventArgs cea);
        public delegate void ContextMenuHandler(PopupMenu pm, CancelEventArgs cea);
		public delegate void TabControlCreatedHandler(Magic.Controls.TabControl tabControl);
		public delegate void SaveCustomConfigHandler(XmlTextWriter xmlOut);
        public delegate void LoadCustomConfigHandler(XmlTextReader xmlIn);

        // Exposed events
        public event ContentHandler ContentShown;
        public event ContentHandler ContentHidden;
        public event ContentHidingHandler ContentHiding;
        public event ContextMenuHandler ContextMenu;
		public event TabControlCreatedHandler TabControlCreated;
		public event SaveCustomConfigHandler SaveCustomConfig;
        public event LoadCustomConfigHandler LoadCustomConfig;

        public DockingManager(ContainerControl container, VisualStyle vs)
        {
            // Must provide a valid container instance
            if (container == null)
                throw new ArgumentNullException("Container");

            // Default state
            _container = container;
            _visualStyle = vs;
            _innerControl = null;
			_zoneMinMax = true;
			_insideFill = false;
			_autoResize = true;
			_firstHalfWidth = true;
			_firstHalfHeight = true;
			_plainTabBorder = false;
			_surpressVisibleEvents = 0;
			_innerMinimum = new Size(20, 20);
	
            // Default font/resize
			_resizeBarVector = -1;
			_captionFont = SystemInformation.MenuFont;
			_tabControlFont = SystemInformation.MenuFont;
			_defaultCaptionFont = true;
			_defaultTabControlFont = true;

			// Create and add hidden auto hide panels
			AddAutoHidePanels();

            // Define initial colors
            ResetColors();

            // Create an object to manage the collection of Content
            _contents = new ManagerContentCollection(this);

            // We want notification when contents are removed/cleared
            _contents.Clearing += new CollectionClear(OnContentsClearing);
            _contents.Removed += new CollectionChange(OnContentRemoved);

			// We want to perform special action when container is resized
			_container.Resize += new EventHandler(OnContainerResized);
			
			// A Form can cause the child controls to be reordered after the initialisation
			// but before the Form.Load event. To handle this we hook into the event and force
			// the auto hide panels to be ordered back into their proper place.
			if (_container is Form)
			{   
			    Form formContainer = _container as Form;			    
			    formContainer.Load += new EventHandler(OnFormLoaded);
			}

            // Need notification when colors change
            Microsoft.Win32.SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(OnPreferenceChanged);
        }

        public ContainerControl Container
        {
            get { return _container; }
        }

        public Control InnerControl
        {
            get { return _innerControl; }
            set { _innerControl = value; }
        }

        public Control OuterControl
        {
            get { return _outerControl; }
            set 
			{
			    if (_outerControl != value)
			    {
				    _outerControl = value;
				    
				    // Use helper routine to ensure panels are in correct positions
                    ReorderAutoHidePanels();
		        }
			}
        }

        public ManagerContentCollection Contents
        {
            get { return _contents; }
			
            set 
            {
                _contents.Clear();
                _contents = value;	
            }
        }

		public bool ZoneMinMax
		{
			get { return _zoneMinMax; }

			set 
			{ 
			    if (value != _zoneMinMax)
			    {
			        _zoneMinMax = value;
                
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.ZoneMinMax, (object)_zoneMinMax);
                } 
			}
		}

		public bool InsideFill
		{
			get { return _insideFill; }

			set
			{
				if (_insideFill != value)
				{
					_insideFill = value;

					if (_insideFill)
					{
					    // Add Fill style to innermost docking window
						AddInnerFillStyle();
			        }
					else
					{
					    // Remove Fill style from innermost docking window
						RemoveAnyFillStyle();
						
						// Ensure that inner control can be seen
                        OnContainerResized(null, EventArgs.Empty);
					}
				}
			}
		}

		public bool AutoResize
		{
			get { return _autoResize; }
			set { _autoResize = value; }
		}

		public Size InnerMinimum
		{
			get { return _innerMinimum; }
			set { _innerMinimum = value; }
		}

        public VisualStyle Style
        {
            get { return _visualStyle; }
        }

        public int ResizeBarVector
        {
            get { return _resizeBarVector; }
            
            set 
            {
                if (value != _resizeBarVector)
                {
                    _resizeBarVector = value;
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.ResizeBarVector, (object)_resizeBarVector);
                }
            }
        }

        public Color BackColor
        {
            get { return _backColor; }
            
            set 
            {
                if (value != _backColor)
                {
                    _backColor = value;
                    _defaultBackColor = (_backColor == SystemColors.Control);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.BackColor, (object)_backColor);
                }
            }
        }
    
        public Color ActiveColor
        {
            get { return _activeColor; }
            
            set 
            {
                if (value != _activeColor)
                {
                    _activeColor = value;
                    _defaultActiveColor = (_activeColor == SystemColors.ActiveCaption);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.ActiveColor, (object)_activeColor);
                }
            }
        }
        
        public Color ActiveTextColor
        {
            get { return _activeTextColor; }
            
            set 
            {
                if (value != _activeTextColor)
                {
                    _activeTextColor = value;
                    _defaultActiveTextColor = (_activeTextColor == SystemColors.ActiveCaptionText);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.ActiveTextColor, (object)_activeTextColor);
                }
            }
        }

        public Color InactiveTextColor
        {
            get { return _inactiveTextColor; }
            
            set 
            {
                if (value != _inactiveTextColor)
                {
                    _inactiveTextColor = value;
                    _defaultInactiveTextColor = (_inactiveTextColor == SystemColors.ControlText);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.InactiveTextColor, (object)_inactiveTextColor);
                }
            }
        }

        public Color ResizeBarColor
        {
            get { return _resizeBarColor; }
            
            set 
            {
                if (value != _resizeBarColor)
                {
                    _resizeBarColor = value;
                    _defaultResizeBarColor = (_resizeBarColor == SystemColors.Control);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.ResizeBarColor, (object)_resizeBarColor);
                }
            }
        }
        
        public Font CaptionFont
        {
            get { return _captionFont; }
            
            set 
            {
                if (value != _captionFont)
                {
                    _captionFont = value;
                    _defaultCaptionFont = (_captionFont == SystemInformation.MenuFont);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.CaptionFont, (object)_captionFont);
                }
            }
        }

        public Font TabControlFont
        {
            get { return _tabControlFont; }
            
            set 
            {
                if (value != _tabControlFont)
                {
                    _tabControlFont = value;
                    _defaultTabControlFont = (_captionFont == SystemInformation.MenuFont);
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.TabControlFont, (object)_tabControlFont);
                }
            }
        }

        public bool PlainTabBorder
        {
            get { return _plainTabBorder; }
            
            set 
            {
                if (value != _plainTabBorder)
                {
                    _plainTabBorder = value;
                    
                    // Notify each object in docking hierarchy in case they need to know new value
                    PropogateNameValue(PropogateName.PlainTabBorder, (object)_plainTabBorder);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三级高清在线| 国产精品77777竹菊影视小说| 一本大道久久a久久综合婷婷| 中文字幕一区二区在线观看| 成a人片亚洲日本久久| 国产精品色哟哟| 色综合天天综合| 亚洲国产精品久久不卡毛片 | 国产一区欧美二区| 久久久国际精品| www..com久久爱| 一区二区三区欧美视频| 91精品啪在线观看国产60岁| 精品一二三四在线| ...av二区三区久久精品| 色一情一乱一乱一91av| 日韩在线a电影| 久久精品一区四区| 在线观看日韩高清av| 蜜臂av日日欢夜夜爽一区| 久久久久久久久久看片| 99久久精品99国产精品| 五月激情综合婷婷| 久久久精品tv| 欧美日韩精品免费| 国产中文一区二区三区| 亚洲婷婷综合久久一本伊一区| 欧美日韩一区二区欧美激情| 国产在线精品免费| 亚洲美女屁股眼交| 亚洲精品在线观看视频| 色素色在线综合| 久久99国产精品久久99| 亚洲欧洲av在线| 日韩精品在线看片z| 91小视频免费看| 韩国v欧美v日本v亚洲v| 亚洲宅男天堂在线观看无病毒| 欧美一区二区三区视频| jizzjizzjizz欧美| 精品一区二区成人精品| 午夜欧美在线一二页| 国产欧美日韩久久| 欧美日本在线播放| 色综合天天综合网国产成人综合天| 日本欧美在线看| 亚洲欧美日韩电影| 久久久不卡网国产精品一区| 欧美精品电影在线播放| 91老师片黄在线观看| 国产精品66部| 蜜臀精品久久久久久蜜臀| 一区二区三区日本| 中文字幕亚洲成人| 国产拍欧美日韩视频二区| 日韩一区二区三区观看| 欧亚洲嫩模精品一区三区| 成人精品小蝌蚪| 国产精品88av| 激情六月婷婷综合| 久久99精品久久久久久动态图| 亚洲一二三区在线观看| 亚洲视频一区在线| 国产精品久久精品日日| 久久久午夜电影| 欧美成人欧美edvon| 欧美日本一区二区在线观看| 日本丰满少妇一区二区三区| 丁香亚洲综合激情啪啪综合| 国产乱子伦视频一区二区三区| 日本欧美一区二区三区乱码| 亚洲第一主播视频| 亚洲成人综合在线| 黄页视频在线91| 午夜精品在线视频一区| 亚洲精品一二三| 亚洲欧美色一区| 亚洲免费在线看| 亚洲精品免费在线观看| 亚洲图片欧美激情| 亚洲天堂中文字幕| 亚洲免费资源在线播放| 一区二区三区在线免费视频| 中文字幕一区二区三区在线不卡| 中文幕一区二区三区久久蜜桃| 中文字幕精品在线不卡| 日本不卡一区二区三区高清视频| 亚洲成人动漫在线观看| 日韩激情一区二区| 极品少妇xxxx精品少妇| 国产精品一级在线| 91视频一区二区| 欧美制服丝袜第一页| 欧美日韩另类一区| 欧美一区二区三区在线观看| 日韩午夜激情免费电影| 久久日一线二线三线suv| 国产亚洲精品免费| 亚洲欧美色一区| 同产精品九九九| 激情五月激情综合网| 成人美女在线视频| 欧洲中文字幕精品| 日韩一卡二卡三卡四卡| 国产偷国产偷亚洲高清人白洁 | 悠悠色在线精品| 午夜精品久久久久影视| 麻豆视频观看网址久久| 国产成人免费在线视频| 91麻豆免费观看| 欧美一级理论片| 久久亚洲春色中文字幕久久久| 国产精品久久三区| 日韩精品福利网| 国产91精品在线观看| 91国内精品野花午夜精品| 日韩一区二区免费在线观看| 久久久噜噜噜久久人人看| 亚洲最新视频在线观看| 久久精品国产99国产| 成人av片在线观看| 日韩一级大片在线| 中文字幕一区在线观看| 爽好久久久欧美精品| 成人高清免费观看| 欧美一激情一区二区三区| 国产精品女人毛片| 日韩精品成人一区二区在线| av动漫一区二区| 欧美一区二区三区日韩视频| 亚洲欧美日韩小说| 国产福利视频一区二区三区| 欧美午夜精品电影| 国产精品久久久久久久午夜片| 午夜精品一区二区三区电影天堂| 成人看片黄a免费看在线| 5566中文字幕一区二区电影| 亚洲国产精品99久久久久久久久| 日本视频中文字幕一区二区三区| 91伊人久久大香线蕉| 精品国产123| 日本在线播放一区二区三区| 91色九色蝌蚪| 国产日韩精品视频一区| 奇米777欧美一区二区| 91久久线看在观草草青青| 久久久久久黄色| 免费成人在线观看| 欧美日韩在线免费视频| 亚洲欧洲成人自拍| 国产精品99久久久久久宅男| 日韩欧美国产三级电影视频| 亚洲超碰精品一区二区| 欧美视频在线一区| 亚洲精品高清视频在线观看| 成人免费高清视频| 久久精品一区四区| 国产精品一区免费视频| 精品国产一区二区国模嫣然| 奇米一区二区三区av| 欧美欧美欧美欧美| 午夜精品免费在线观看| 欧美精品久久一区| 日韩高清不卡一区| 67194成人在线观看| 午夜电影久久久| 欧美日免费三级在线| 亚洲永久精品大片| 91福利在线看| 亚洲自拍偷拍综合| 欧美午夜在线观看| 三级影片在线观看欧美日韩一区二区| 欧美在线观看一区二区| 亚洲最快最全在线视频| 欧美亚洲日本一区| 五月天激情综合| 欧美一区二区三区的| 另类小说图片综合网| 精品美女一区二区三区| 国产一区二区毛片| 国产清纯在线一区二区www| 成人黄动漫网站免费app| 国产精品激情偷乱一区二区∴| www.久久精品| 亚洲自拍都市欧美小说| 制服丝袜在线91| 国模一区二区三区白浆| 中文字幕 久热精品 视频在线| 大桥未久av一区二区三区中文| 亚洲欧洲韩国日本视频| 欧美午夜在线观看| 精品一区二区三区的国产在线播放| 久久久精品欧美丰满| 不卡欧美aaaaa| 亚洲免费大片在线观看| 欧美精品一二三| 国产在线播放一区二区三区| 中文字幕不卡在线| 欧美系列日韩一区| 国产在线一区观看|