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

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

?? redockercontent.cs

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

namespace Crownwood.Magic.Docking
{
    public class RedockerContent : Redocker
    {
        public enum Source
        {
            RawContent,
            ContentInsideWindow,
            WindowContent,
            FloatingForm
        }

        // Class constants
        protected static int _hotVectorFromEdge = 2;
        protected static int _hotVectorBeforeControl = 5;

        // Instance fields
        protected ContainerControl _container;
        protected Source _source;
        protected Content _content;
        protected HotZone _currentHotZone;
        protected Control _callingControl;
        protected FloatingForm _floatingForm;
        protected HotZoneCollection _hotZones;
        protected WindowContent _windowContent;
        protected DockingManager _dockingManager;
        protected Rectangle _insideRect;
        protected Rectangle _outsideRect;
        protected Point _offset;

        public RedockerContent(Control callingControl, Content c, Point offset)
        {
            InternalConstruct(callingControl, Source.RawContent, c, null, null, c.DockingManager, offset);
        }

        public RedockerContent(Control callingControl, Content c, WindowContent wc, Point offset)
        {
            InternalConstruct(callingControl, Source.ContentInsideWindow, c, wc, null, c.DockingManager, offset);
        }

        public RedockerContent(Control callingControl, WindowContent wc, Point offset)
        {
            InternalConstruct(callingControl, Source.WindowContent, null, wc, null, wc.DockingManager, offset);
        }

        public RedockerContent(FloatingForm ff, Point offset)
        {
            InternalConstruct(ff, Source.FloatingForm, null, null, ff, ff.DockingManager, offset);
        }

        protected void InternalConstruct(Control callingControl, 
                                         Source source, 
                                         Content c, 
                                         WindowContent wc, 
                                         FloatingForm ff,
                                         DockingManager dm,
                                         Point offset)
        {
            // Store the starting state
            _callingControl = callingControl;
            _source = source;
            _content = c;
            _windowContent = wc;
            _dockingManager = dm;
            _container = _dockingManager.Container;
            _floatingForm = ff;
            _hotZones = null;
            _currentHotZone = null;
            _insideRect = new Rectangle();
            _outsideRect = new Rectangle();
            _offset = offset;

            // Begin tracking straight away
            EnterTrackingMode();
        }

        public override void EnterTrackingMode()
        {
            // Have we entered tracking mode?
            if (!_tracking)
            {
                base.EnterTrackingMode();

                // Source must provide a valid manager instance
                if (_dockingManager == null)
                    throw new ArgumentNullException("DockingManager");

                // Generate the hot spots that represent actions
                GenerateHotZones();
            }
        }

        public override bool ExitTrackingMode(MouseEventArgs e)
        {
            // Have we exited tracking mode?
            if (_tracking)
            {
                base.ExitTrackingMode(e);
	
                // Is there a current HotZone active?
                if (_currentHotZone != null)
                {
					// Convert from Control coordinates to screen coordinates
					Point mousePos = _callingControl.PointToScreen(new Point(e.X, e.Y));
					
					// Let the zone apply whatever change it represents
					return _currentHotZone.ApplyChange(mousePos, this);
                }
            }

            return false;
        }

        public override void QuitTrackingMode(MouseEventArgs e)
        {
            // Have we quit tracking mode?
            if (_tracking)
            {
                if (_callingControl.Handle != IntPtr.Zero)
                {
                    // Remove any visible tracking indicator
                    if (_currentHotZone != null)
                        _currentHotZone.RemoveIndicator(new Point(0,0));
                }
                                    
                base.QuitTrackingMode(e);
            }
        }

        public override void OnMouseMove(MouseEventArgs e)
        {
			if (_callingControl.Handle != IntPtr.Zero)
			{
				// Convert from Control coordinates to screen coordinates
				Point mousePos = _callingControl.PointToScreen(new Point(e.X, e.Y));

				// Find HotZone this position is inside
				HotZone hz = _hotZones.Contains(mousePos);

				if (hz != _currentHotZone)
				{
					if (_currentHotZone != null)
						_currentHotZone.RemoveIndicator(mousePos);

					_currentHotZone = hz;

					if (_currentHotZone != null)
						_currentHotZone.DrawIndicator(mousePos);
				}
				else
				{
					if (_currentHotZone != null)
						_currentHotZone.UpdateForMousePosition(mousePos, this);
				}
			}

            base.OnMouseMove(e);
        }

        public override bool OnMouseUp(MouseEventArgs e)
        {
			if (_callingControl.Handle != IntPtr.Zero)
			{
				if (_currentHotZone != null)
					_currentHotZone.RemoveIndicator(_callingControl.PointToScreen(new Point(e.X, e.Y)));
			}

            return base.OnMouseUp(e);
        }

        public Source DockingSource
        {
            get { return _source; }
        }

        public Content Content
        {
            get { return _content; }
        }

        public WindowContent WindowContent
        {
            get { return _windowContent; }
        }

        public DockingManager DockingManager
        {
            get { return _dockingManager; }
        }

        public FloatingForm FloatingForm
        {
            get { return _floatingForm; }
        }

        protected void GenerateHotZones()
        {
            // Need the client rectangle for the whole Form
            Rectangle formClient = _container.RectangleToScreen(_container.ClientRectangle);

            // Create a fresh collection for HotZones
            _hotZones = new HotZoneCollection();

            // We do not allow docking in front of the outer index entry
            int outerIndex = FindOuterIndex();

            // Create lists of Controls which are docked against each edge	
            ArrayList topList = new ArrayList();
            ArrayList leftList = new ArrayList();
            ArrayList rightList = new ArrayList();
            ArrayList bottomList = new ArrayList();
            ArrayList fillList = new ArrayList();

            PreProcessControlsCollection(topList, leftList, rightList, bottomList, fillList, outerIndex);

            int vectorH;
            int vectorV;

            // Find the vectors required for calculating new sizes
            VectorDependsOnSourceAndState(out vectorH, out vectorV);

            GenerateHotZonesForTop(topList, formClient, vectorV, outerIndex);
            GenerateHotZonesForLeft(leftList, formClient, vectorH, outerIndex);
            GenerateHotZonesForRight(rightList, formClient, vectorH, outerIndex);
            GenerateHotZonesForBottom(bottomList, formClient, vectorV, outerIndex);
            GenerateHotZonesForFill(fillList, outerIndex);
            GenerateHotZonesForFloating(SizeDependsOnSource());
        }

        protected void PreProcessControlsCollection(ArrayList topList, ArrayList leftList, ArrayList rightList, ArrayList bottomList, ArrayList fillList, int outerIndex)
        {
            // Find space left after all docking windows has been positioned
            _insideRect = _container.ClientRectangle; 
            _outsideRect = _insideRect; 

            // We want lists of docked controls grouped by docking style
            foreach(Control item in _container.Controls)
            {
                bool ignoreType = (item is AutoHidePanel);

                int controlIndex = _container.Controls.IndexOf(item);

                bool outer = (controlIndex >= outerIndex);

                if (item.Visible)
                {
                    if (item.Dock == DockStyle.Top)
                    {
                        topList.Insert(0, item);

                        if (_insideRect.Y < item.Bottom)
                        {
                            _insideRect.Height -= item.Bottom - _insideRect.Y;
                            _insideRect.Y = item.Bottom;
                        }

                        if (outer || ignoreType)
                        {
                            if (_outsideRect.Y < item.Bottom)
                            {
                                _outsideRect.Height -= item.Bottom - _outsideRect.Y;
                                _outsideRect.Y = item.Bottom;
                            }
                        }
                    }

                    if (item.Dock == DockStyle.Left)
                    {
                        leftList.Insert(0, item);

                        if (_insideRect.X < item.Right)
                        {
                            _insideRect.Width -= item.Right - _insideRect.X;
                            _insideRect.X = item.Right;
                        }

                        if (outer || ignoreType)
                        {
                            if (_outsideRect.X < item.Right)
                            {
                                _outsideRect.Width -= item.Right - _outsideRect.X;
                                _outsideRect.X = item.Right;
                            }
                        }
                    }

                    if (item.Dock == DockStyle.Bottom)
                    {
                        bottomList.Insert(0, item);

                        if (_insideRect.Bottom > item.Top)
                            _insideRect.Height -= _insideRect.Bottom - item.Top;

                        if (outer || ignoreType)
                        {
                            if (_outsideRect.Bottom > item.Top)
                                _outsideRect.Height -= _outsideRect.Bottom - item.Top;
                        }
                    }

                    if (item.Dock == DockStyle.Right)
                    {
                        rightList.Insert(0, item);

                        if (_insideRect.Right > item.Left)
                            _insideRect.Width -= _insideRect.Right - item.Left;

                        if (outer || ignoreType)
                        {
                            if (_outsideRect.Right > item.Left)
                                _outsideRect.Width -= _outsideRect.Right - item.Left;
                        }
                    }

                    if (item.Dock == DockStyle.Fill)
						fillList.Insert(0, item);
                }
            }

            // Convert to screen coordinates
            _insideRect = _container.RectangleToScreen(_insideRect);
            _outsideRect = _container.RectangleToScreen(_outsideRect);
        }

        protected int FindOuterIndex()
        {
            // We do not allow docking in front of the outer index entry
            int outerIndex = _container.Controls.Count;
			
            Control outerControl = _dockingManager.OuterControl;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费精品视频在线| 午夜久久久久久| 日本麻豆一区二区三区视频| 国产成人综合在线观看| 欧美日韩大陆在线| 中文成人av在线| 精一区二区三区| 欧美婷婷六月丁香综合色| 中文字幕巨乱亚洲| 久久爱www久久做| 欧美日韩一区二区在线视频| 国产精品日日摸夜夜摸av| 久久激情五月激情| 欧美日韩国产综合草草| 亚洲欧美日韩成人高清在线一区| 国产剧情一区二区三区| 日韩精品一区二区三区中文不卡| 亚洲一区电影777| 99久久婷婷国产综合精品| 久久综合色天天久久综合图片| 午夜欧美在线一二页| 91官网在线观看| 亚洲欧美偷拍另类a∨色屁股| 高清不卡在线观看| 久久久久久**毛片大全| 狠狠色丁香九九婷婷综合五月| 欧美日韩视频在线第一区| 一区二区三区欧美亚洲| 91亚洲国产成人精品一区二三 | 国产一区二区伦理片| 欧美日韩高清在线播放| 亚洲尤物在线视频观看| 93久久精品日日躁夜夜躁欧美| 欧美国产一区视频在线观看| 国产美女精品在线| 精品国产a毛片| 久久国产尿小便嘘嘘尿| 日韩久久精品一区| 免费观看久久久4p| 欧美一级专区免费大片| 免费观看久久久4p| 精品久久久久久久人人人人传媒| 日本人妖一区二区| 欧美成人精精品一区二区频| 久久av中文字幕片| 久久久蜜桃精品| 国产成人免费9x9x人网站视频| 久久精品一区二区三区四区| 国产成人综合网| 亚洲国产精品国自产拍av| 成人综合婷婷国产精品久久| 国产精品成人免费在线| 99久久伊人网影院| 一区二区三区欧美| 欧美无乱码久久久免费午夜一区 | 久久综合色8888| 国产激情一区二区三区桃花岛亚洲| 2020国产精品| 国产美女在线精品| 国产精品久久久久精k8 | 奇米影视一区二区三区| 欧美一区二区三区小说| 精品一区二区三区av| 国产欧美日本一区二区三区| 成人高清在线视频| 一区二区三区视频在线看| 欧美精品乱人伦久久久久久| 另类小说综合欧美亚洲| 久久精品一区四区| 91丨porny丨户外露出| 五月激情六月综合| 久久久亚洲欧洲日产国码αv| 粉嫩绯色av一区二区在线观看| 亚洲精品视频一区二区| 在线播放中文一区| 国产尤物一区二区| 亚洲日本在线视频观看| 欧美巨大另类极品videosbest | 秋霞电影网一区二区| 久久新电视剧免费观看| av高清久久久| 日韩电影在线观看电影| 久久亚洲综合色| 色网站国产精品| 日韩高清在线电影| 国产欧美久久久精品影院| 欧美午夜寂寞影院| 国内外成人在线| 一区二区三区电影在线播| 精品剧情在线观看| 91麻豆123| 麻豆精品视频在线观看免费| 国产精品麻豆一区二区| 制服丝袜成人动漫| 成人美女在线观看| 青草av.久久免费一区| 中文字幕乱码日本亚洲一区二区| 欧美日韩一卡二卡三卡 | 亚洲国产中文字幕在线视频综合| 精品奇米国产一区二区三区| 91丨九色porny丨蝌蚪| 九九精品视频在线看| 一区二区高清在线| 国产三级精品在线| 欧美高清www午色夜在线视频| 懂色av中文一区二区三区| 日本美女视频一区二区| 亚洲丝袜制服诱惑| 欧美精品一区二区三区视频| 欧美视频一区二区三区| 国产不卡视频在线播放| 免费成人你懂的| 亚洲综合一二区| 成人性生交大片免费看中文网站| 视频在线在亚洲| 亚洲欧洲无码一区二区三区| 日韩欧美二区三区| 欧洲av在线精品| 成人午夜精品在线| 免费的成人av| 午夜精品久久久久久久| 国产精品卡一卡二卡三| www国产精品av| 91麻豆精品国产91久久久久| 色综合久久88色综合天天免费| 国产91高潮流白浆在线麻豆| 精品一区二区三区的国产在线播放| 午夜影院久久久| 综合分类小说区另类春色亚洲小说欧美| 国产麻豆精品theporn| 蜜臀91精品一区二区三区 | 日本一区二区成人| 精品久久久久久无| 3atv一区二区三区| 欧美性视频一区二区三区| 成人国产精品免费观看| 国产成人亚洲综合a∨猫咪| 久久99国产精品免费网站| 午夜视频一区在线观看| 亚洲一区中文日韩| 亚洲免费观看高清在线观看| 国产精品久久久久久久久晋中 | 国产三级欧美三级日产三级99| 欧美刺激脚交jootjob| 7777精品伊人久久久大香线蕉 | 日本高清无吗v一区| 国产午夜精品久久| 精品久久久久久综合日本欧美| 91精品国产综合久久久久| 色8久久精品久久久久久蜜 | 麻豆精品一区二区三区| 亚洲福利电影网| 亚洲在线视频免费观看| 一区二区三区在线观看动漫| 亚洲视频狠狠干| 亚洲色图欧美激情| 专区另类欧美日韩| 亚洲精品高清视频在线观看| 亚洲天堂福利av| 亚洲视频一区二区在线| 亚洲视频中文字幕| 亚洲色图欧美偷拍| 一区二区三区成人| 亚洲五月六月丁香激情| 亚洲超碰97人人做人人爱| 丝袜亚洲精品中文字幕一区| 天天色综合天天| 日本成人在线看| 奇米777欧美一区二区| 日本不卡视频在线观看| 另类小说色综合网站| 国产最新精品免费| 成人精品高清在线| 95精品视频在线| 欧美日韩中文字幕精品| 欧美美女直播网站| 日韩午夜电影av| 2014亚洲片线观看视频免费| 欧美国产视频在线| 亚洲人成网站精品片在线观看| 亚洲一区二区三区在线播放| 午夜精品123| 久久精品理论片| 国产寡妇亲子伦一区二区| 9l国产精品久久久久麻豆| 色婷婷精品久久二区二区蜜臀av| 欧美性色综合网| 欧美成人综合网站| 国产精品久久午夜| 亚洲国产美女搞黄色| 美女www一区二区| 国产成人丝袜美腿| 91高清在线观看| 日韩午夜在线观看视频| 欧美激情一区三区| 亚洲一二三四区不卡| 久久国产尿小便嘘嘘| av电影天堂一区二区在线观看| 欧美男同性恋视频网站| 国产亚洲精品中文字幕|