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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tabbedgroups.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
// *****************************************************************************
// 
//  (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.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Crownwood.Magic.Win32;
using Crownwood.Magic.Common;
using Crownwood.Magic.Controls;

namespace Crownwood.Magic.Controls
{
    [ToolboxBitmap(typeof(TabbedGroups))]
    public class TabbedGroups : UserControl, ISupportInitialize, IMessageFilter
	{
	    public class DragProvider
	    {
            protected object _tag;
            
            public DragProvider()
            {
                _tag = null;
            }
            
            public DragProvider(object tag)
            {
                _tag = tag;
            }
            
            public object Tag
            {
                get { return _tag; }
                set { _tag = value; }
            }
	    }
	
	    public enum DisplayTabModes
	    {
            HideAll,
            ShowAll,
            ShowActiveLeaf,
            ShowMouseOver,
            ShowActiveAndMouseOver
	    }
	
	    public enum CompactFlags
	    {
	        RemoveEmptyTabLeaf = 1,
	        RemoveEmptyTabSequence = 2,
	        ReduceSingleEntries = 4,
	        ReduceSameDirection = 8,
	        All = 15
	    }
	
	    // Instance fields
	    protected int _numLeafs;
        protected int _defMinWidth;
        protected int _defMinHeight;
        protected string _closeMenuText;
        protected string _prominentMenuText;
        protected string _rebalanceMenuText;
        protected string _movePreviousMenuText;
        protected string _moveNextMenuText;
        protected string _newVerticalMenuText;
        protected string _newHorizontalMenuText;
        protected ImageList _imageList;
        protected bool _dirty;
        protected bool _autoCalculateDirty;
        protected bool _saveControls;
        protected bool _initializing;
        protected bool _atLeastOneLeaf;
        protected bool _autoCompact;
        protected bool _compacting;
        protected bool _resizeBarLock;
        protected int _resizeBarVector;
        protected Color _resizeBarColor;
        protected Shortcut _closeShortcut;
        protected Shortcut _prominentShortcut;
        protected Shortcut _rebalanceShortcut;
        protected Shortcut _movePreviousShortcut;
        protected Shortcut _moveNextShortcut;
        protected Shortcut _splitVerticalShortcut;
        protected Shortcut _splitHorizontalShortcut;
        protected Shortcut _nextTabShortcut;
        protected CompactFlags _compactOptions;
        protected DisplayTabModes _displayTabMode;
        protected TabGroupLeaf _prominentLeaf;
        protected TabGroupLeaf _activeLeaf;
        protected TabGroupSequence _root;
        protected VisualStyle _style;
	
	    // Delegates for events
	    public delegate void TabControlCreatedHandler(TabbedGroups tg, Controls.TabControl tc);
	    public delegate void PageCloseRequestHandler(TabbedGroups tg, TGCloseRequestEventArgs e);
        public delegate void PageContextMenuHandler(TabbedGroups tg, TGContextMenuEventArgs e);
        public delegate void GlobalSavingHandler(TabbedGroups tg, XmlTextWriter xmlOut);
        public delegate void GlobalLoadingHandler(TabbedGroups tg, XmlTextReader xmlIn);
        public delegate void PageSavingHandler(TabbedGroups tg, TGPageSavingEventArgs e);
        public delegate void PageLoadingHandler(TabbedGroups tg, TGPageLoadingEventArgs e);
        public delegate void ExternalDropHandler(TabbedGroups tg, TabGroupLeaf tgl, Controls.TabControl tc, DragProvider dp);
	
	    // Instance events
	    public event TabControlCreatedHandler TabControlCreated;
	    public event PageCloseRequestHandler PageCloseRequest;
        public event PageContextMenuHandler PageContextMenu;
        public event GlobalSavingHandler GlobalSaving;
        public event GlobalLoadingHandler GlobalLoading;
        public event PageSavingHandler PageSaving;
        public event PageLoadingHandler PageLoading;
        public event EventHandler ProminentLeafChanged;
        public event EventHandler ActiveLeafChanged;
        public event EventHandler DirtyChanged;
        public event ExternalDropHandler ExternalDrop;
	
        public TabbedGroups()
        {
            InternalConstruct(VisualStyle.IDE);
        }
            
        public TabbedGroups(VisualStyle style)
		{
		    InternalConstruct(style);
        }
        
        protected void InternalConstruct(VisualStyle style)
		{
            // Prevent flicker with double buffering and all painting inside WM_PAINT
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
		
		    // We want to act as a drop target
		    this.AllowDrop = true;
		
		    // Remember parameters
		    _style = style;
		    
		    // Define initial state
		    _numLeafs = 0;
		    _compacting = false;
		    _initializing = false;
		    
            // Create the root sequence that always exists
            _root = new TabGroupSequence(this);
		    
            // Define default settings
		    ResetProminentLeaf();
		    ResetResizeBarVector();
		    ResetResizeBarColor();
		    ResetResizeBarLock();
		    ResetCompactOptions();
		    ResetDefaultGroupMinimumWidth();
            ResetDefaultGroupMinimumHeight();
            ResetActiveLeaf();
            ResetAutoCompact();
            ResetAtLeastOneLeaf();
            ResetCloseMenuText();
            ResetProminentMenuText();
            ResetRebalanceMenuText();
            ResetMovePreviousMenuText();
            ResetMoveNextMenuText();
            ResetNewVerticalMenuText();
            ResetNewHorizontalMenuText();
            ResetCloseShortcut();
            ResetProminentShortcut();
            ResetRebalanceShortcut();
            ResetMovePreviousShortcut();
            ResetMoveNextShortcut();
            ResetSplitVerticalShortcut();
            ResetSplitHorizontalShortcut();
            ResetImageList();
            ResetDisplayTabMode();
            ResetSaveControls();
            ResetAutoCalculateDirty();
            ResetDirty();
            
            // Add ourself to the application filtering list 
            // (to snoop for shortcut combinations)
            Application.AddMessageFilter(this);
            
        }
        
        [Category("TabbedGroups")]
        [DefaultValue(typeof(VisualStyle), "IDE")]
        public VisualStyle Style
        {
            get { return _style; }
            
            set
            {
                if (_style != value)
                {   
                    _style = value;
                    
                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.StyleChanged);
                }
            }
        }

        public void ResetStyle()
        {
            Style = VisualStyle.IDE;
        }
        
        [Browsable(false)]
        public TabGroupSequence RootSequence
        {
            get { return _root; }
        }

        [Category("TabbedGroups")]
        [DefaultValue(-1)]
        public int ResizeBarVector
        {
            get { return _resizeBarVector; }
            
            set
            {
                if (_resizeBarVector != value)
                {
                    _resizeBarVector = value;
                    
                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.ResizeBarVectorChanged);
                }
            }
        }
        
        public void ResetResizeBarVector()
        {
            ResizeBarVector = -1;
        }
        
        [Category("TabbedGroups")]
        public Color ResizeBarColor
        {
            get { return _resizeBarColor; }
            
            set
            {
                if (!_resizeBarColor.Equals(value))
                {
                    _resizeBarColor = value;
                    
                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.ResizeBarColorChanged);
                }
            }
        }

        protected bool ShouldSerializeResizeBackColor()
        {
            return _resizeBarColor != base.BackColor;
        }
        
        public void ResetResizeBarColor()
        {
            ResizeBarColor = base.BackColor;
        }
        
        [Category("TabbedGroups")]
        [DefaultValue(false)]
        public bool ResizeBarLock
        {
            get { return _resizeBarLock; }
            set { _resizeBarLock = value; }
        }
        
        public void ResetResizeBarLock()
        {
            ResizeBarLock = false;
        }
        
        [Category("TabbedGroups")]
        public TabGroupLeaf ProminentLeaf
        {
            get { return _prominentLeaf; }
            
            set
            {
                if (_prominentLeaf != value)
                {
                    _prominentLeaf = value;

                    // Mark layout as dirty
                    if (_autoCalculateDirty)
                        _dirty = true;

                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.ProminentChanged);
                    
                    OnProminentLeafChanged(EventArgs.Empty);
                }
            }
        }
        
        public void ResetProminentLeaf()
        {
            ProminentLeaf = null;
        }
        
        [Category("TabbedGroups")]
        [DefaultValue(typeof(CompactFlags), "All")]
        public CompactFlags CompactOptions
        {
            get { return _compactOptions; }
            set { _compactOptions = value; }
        }

        public void ResetCompactOptions()
        {
            CompactOptions = CompactFlags.All;
        }
        
        [Category("TabbedGroups")]
        [DefaultValue(4)]
        public int DefaultGroupMinimumWidth 
        {
            get { return _defMinWidth; }
            
            set
            {
                if (_defMinWidth != value)
                {
                    _defMinWidth = value;
                    
                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.MinimumSizeChanged);
                }
            }
        }        
        
        public void ResetDefaultGroupMinimumWidth()
        {
            DefaultGroupMinimumWidth = 4;
        }
        
        [Category("TabbedGroups")]
        [DefaultValue(4)]
        public int DefaultGroupMinimumHeight
        {
            get { return _defMinHeight; }
            
            set
            {
                if (_defMinHeight != value)
                {
                    _defMinHeight = value;
                    
                    // Propogate to all children
                    Notify(TabGroupBase.NotifyCode.MinimumSizeChanged);
                }
            }
        }        
        
        public void ResetDefaultGroupMinimumHeight()
        {
            DefaultGroupMinimumHeight = 4;
        }

        [Localizable(true)]
        [Category("Text String")]
        [DefaultValue("&Close")]
        public string CloseMenuText
        {
            get { return _closeMenuText; }
            set { _closeMenuText = value; }
        }
        
        public void ResetCloseMenuText()
        {
            CloseMenuText = "&Close";
        }

        [Localizable(true)]
        [Category("Text String")]
        [DefaultValue("Pro&minent")]
        public string ProminentMenuText
        {
            get { return _prominentMenuText; }
            set { _prominentMenuText = value; }
        }

        public void ResetProminentMenuText()
        {
            ProminentMenuText = "Pro&minent";
        }

        [Localizable(true)]
        [Category("Text String")]
        [DefaultValue("&Rebalance")]
        public string RebalanceMenuText
        {
            get { return _rebalanceMenuText; }
            set { _rebalanceMenuText = value; }
        }

        public void ResetRebalanceMenuText()
        {
            RebalanceMenuText = "&Rebalance";
        }

        [Localizable(true)]
        [Category("Text String")]
        [DefaultValue("Move to &Previous Tab Group")]
        public string MovePreviousMenuText
        {
            get { return _movePreviousMenuText; }
            set { _movePreviousMenuText = value; }
        }

        public void ResetMovePreviousMenuText()
        {
            MovePreviousMenuText = "Move to &Previous Tab Group";
        }

        [Localizable(true)]
        [Category("Text String")]
        [DefaultValue("Move to &Next Tab Group")]
        public string MoveNextMenuText
        {
            get { return _moveNextMenuText; }
            set { _moveNextMenuText = value; }
        }
        
        public void ResetMoveNextMenuText()
        {
            MoveNextMenuText = "Move to &Next Tab Group";
        }

        [Localizable(true)]
        [Category("Text String")]

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产高清在线精品| 国产剧情一区二区| 午夜av一区二区| 丁香婷婷综合激情五月色| 成人免费毛片aaaaa**| 99九九99九九九视频精品| 在线国产亚洲欧美| 日韩精品一区二区三区视频播放 | 久久色视频免费观看| 久久精品无码一区二区三区| 蓝色福利精品导航| 成人av网站在线观看免费| 色视频一区二区| 久久精品一区蜜桃臀影院| 亚洲一区二区黄色| 国产成人免费视频网站| 欧美三级欧美一级| 中文字幕在线播放不卡一区| 久久99热狠狠色一区二区| 欧美亚洲免费在线一区| 国产午夜亚洲精品羞羞网站| 奇米777欧美一区二区| 色综合一区二区| 中文字幕一区二区三区四区不卡 | 免费在线欧美视频| 7777精品伊人久久久大香线蕉超级流畅 | 成人一区二区三区中文字幕| 久久爱另类一区二区小说| 精品精品国产高清a毛片牛牛| 日本精品一级二级| 亚洲国产精品久久人人爱蜜臀| 久久久青草青青国产亚洲免观| 91免费观看国产| 亚洲日本一区二区| 午夜电影网一区| 欧美人牲a欧美精品| 国内精品国产成人国产三级粉色| 欧美疯狂做受xxxx富婆| 亚洲综合色成人| 欧美日韩一区不卡| 首页国产欧美日韩丝袜| 91精品国产色综合久久不卡电影| 亚洲成人7777| 欧美精品乱人伦久久久久久| 美洲天堂一区二卡三卡四卡视频 | 国产精品色一区二区三区| 国产在线播放一区| 中文字幕在线不卡一区二区三区 | 一区二区在线看| 99re热这里只有精品免费视频| 国产精品乱子久久久久| 欧美视频日韩视频| 精品一区二区三区久久久| 国产精品国产自产拍在线| 精品视频一区三区九区| 蓝色福利精品导航| 亚洲激情自拍视频| 26uuu色噜噜精品一区二区| 91精品国产欧美一区二区18| 日日夜夜精品视频天天综合网| 日韩免费看网站| 91久久精品一区二区三区| 久久99日本精品| 日韩一区精品视频| 亚洲国产精品嫩草影院| 国产精品卡一卡二| 精品欧美久久久| 欧美日韩免费电影| 欧美狂野另类xxxxoooo| 国产在线精品免费| 蜜臀精品一区二区三区在线观看 | 精品国产精品一区二区夜夜嗨| 色系网站成人免费| 91美女在线视频| 97久久精品人人爽人人爽蜜臀 | 国产精品一区免费在线观看| 亚洲成人动漫在线免费观看| 亚洲人成网站影音先锋播放| 欧美国产一区在线| 国产亚洲综合在线| 久久亚洲综合色一区二区三区| 日韩一区二区在线看| 3atv在线一区二区三区| 在线视频欧美精品| 91原创在线视频| 日本道精品一区二区三区| 色综合激情久久| 欧美男男青年gay1069videost| 欧美日韩一区不卡| 日韩欧美国产综合一区| 精品成人佐山爱一区二区| 国产欧美一区二区精品秋霞影院| 国产亚洲精品久| 日韩一区有码在线| 亚洲男同1069视频| 首页国产丝袜综合| 欧美日韩精品专区| 精品嫩草影院久久| 日韩一区日韩二区| 久久精品av麻豆的观看方式| 成人免费视频视频在线观看免费| 91丨国产丨九色丨pron| 这里只有精品免费| 亚洲婷婷综合色高清在线| 午夜激情综合网| 国内精品久久久久影院色| 91年精品国产| www日韩大片| 亚洲国产乱码最新视频 | 最近日韩中文字幕| www.久久精品| 国产精品免费观看视频| 欧美高清www午色夜在线视频| 国产精品午夜电影| 激情综合色综合久久综合| 欧美日韩一区二区三区在线| 亚洲视频免费在线观看| 国产一区二区三区av电影| 欧美一级午夜免费电影| 亚洲二区在线观看| 欧美日韩一区二区三区不卡| 亚洲伊人色欲综合网| 91一区二区在线| 91精品国产手机| 日本aⅴ亚洲精品中文乱码| 欧美日韩激情在线| 日韩专区在线视频| 欧美一区二区三区性视频| 美女一区二区久久| www亚洲一区| 91视频免费播放| 亚洲一区二区三区在线看| 欧美日韩在线三区| 麻豆精品在线看| 国产.欧美.日韩| 日本一区二区成人| av亚洲精华国产精华精华| 依依成人精品视频| 欧美一区二区日韩一区二区| 国内精品在线播放| 国产精品久久久久久久久图文区| 99视频精品免费视频| 午夜精品一区在线观看| 久久久精品影视| 欧美日韩国产在线播放网站| 色婷婷久久一区二区三区麻豆| 亚洲少妇最新在线视频| 91精品黄色片免费大全| 成人精品视频一区| 五月婷婷色综合| 久久久精品tv| 日韩三级视频中文字幕| 91麻豆文化传媒在线观看| 国内不卡的二区三区中文字幕| 一区二区三区在线视频免费观看| 日韩一区二区三区在线观看| 色猫猫国产区一区二在线视频| 国产在线一区观看| 久久伊人中文字幕| 欧美日本在线视频| 色先锋aa成人| 91在线视频播放地址| 国产精品 日产精品 欧美精品| 日韩av中文在线观看| 亚洲一区日韩精品中文字幕| 中文字幕一区二区三区四区不卡| 2022国产精品视频| 久久久久高清精品| 中文欧美字幕免费| 久久蜜臀精品av| 91精品国产91综合久久蜜臀| 色天天综合色天天久久| 99久久精品国产网站| 91丨九色丨尤物| 在线观看亚洲精品| 欧美日韩在线亚洲一区蜜芽| 欧美系列亚洲系列| 欧美一二三四在线| 久久亚洲春色中文字幕久久久| 精品久久国产97色综合| 久久久国际精品| 中文字幕日韩一区| 视频一区二区欧美| 香蕉成人啪国产精品视频综合网 | 免费看精品久久片| 国产一区二区三区在线观看精品 | 在线欧美一区二区| 欧美一区二区在线播放| 欧美日韩亚洲综合在线 | 不卡一区二区三区四区| 欧美亚洲一区三区| 日韩欧美的一区| 亚洲一区免费观看| 欧美精品一区男女天堂| 日韩精品国产欧美| 男人操女人的视频在线观看欧美| 精品一二三四在线| 91国产精品成人| 日本一区二区三区高清不卡| 五月天视频一区|