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

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

?? tabcontrol.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 5 頁
字號:
                PageDragStart(this, e);
        }

        public virtual void OnPageDragMove(MouseEventArgs e)
        {
            // Has anyone registered for the event?
            if (PageDragMove != null)
                PageDragMove(this, e);
        }

        public virtual void OnPageDragEnd(MouseEventArgs e)
        {
            // Has anyone registered for the event?
            if (PageDragEnd != null)
                PageDragEnd(this, e);
        }

        public virtual void OnPageDragQuit(MouseEventArgs e)
        {
            // Has anyone registered for the event?
            if (PageDragQuit != null)
                PageDragQuit(this, e);
        }
        
        public virtual void OnDoubleClickTab(TabPage page)
        {
            // Has anyone registered for the event?
            if (DoubleClickTab != null)
                DoubleClickTab(this, page);
        }

        protected virtual void OnCloseButton(object sender, EventArgs e)
        {
            OnClosePressed(EventArgs.Empty);
        }

        protected virtual void OnLeftArrow(object sender, EventArgs e)
        {
            // Set starting page back one
            _startPage--;

            _recalculate = true;
            Invalidate();
        }
	
        protected virtual void OnRightArrow(object sender, EventArgs e)
        {
            // Set starting page forward one
            _startPage++;

            _recalculate = true;
            Invalidate();
        }

        protected virtual void DefineFont(Font newFont)
        {
            // Use base class for storage of value
            base.Font = newFont;
	
            // Update internal height value using Font
            _textHeight = newFont.Height;

            // Is the font height bigger than the image height?
            if (_imageHeight >= _textHeight)
            {
                // No, do not need extra spacing around the image to fit in text
                _imageGapTopExtra = 0;
                _imageGapBottomExtra = 0;
            }
            else
            {
                // Yes, need to make the image area bigger so that its height calculation
                // matchs that height of the text
                int extraHeight = _textHeight - _imageHeight;

                // Split the extra height between the top and bottom of image
                _imageGapTopExtra = extraHeight / 2;
                _imageGapBottomExtra = extraHeight - _imageGapTopExtra;
            }
        }

        protected virtual void DefineBackColor(Color newColor)
        {
            base.BackColor = newColor;

            // Calculate the modified colors from this base
            _backLight = ControlPaint.Light(newColor);
            _backLightLight = ControlPaint.LightLight(newColor);
            _backDark = ControlPaint.Dark(newColor);
            _backDarkDark = ControlPaint.DarkDark(newColor);

            _backIDE = ColorHelper.TabBackgroundFromBaseColor(newColor);
        }
		
        protected virtual void DefineButtonImages()
        {
            ImageAttributes ia = new ImageAttributes();

            ColorMap activeMap = new ColorMap();
            ColorMap inactiveMap = new ColorMap();

            // Define the color transformations needed
            activeMap.OldColor = Color.Black;
            activeMap.NewColor = _buttonActiveColor;
            inactiveMap.OldColor = Color.White;
            inactiveMap.NewColor = _buttonInactiveColor;

            // Create remap attributes for use by button
            ia.SetRemapTable(new ColorMap[]{activeMap, inactiveMap}, ColorAdjustType.Bitmap);

            // Pass attributes to the buttons
            _leftArrow.ImageAttributes = ia;
            _rightArrow.ImageAttributes = ia;
            _closeButton.ImageAttributes = ia;
        }

        protected virtual void SetAppearance(VisualAppearance appearance)
        {
            switch(appearance)
            {
                case VisualAppearance.MultiForm:
                case VisualAppearance.MultiBox:
                    _shrinkPagesToFit = true;					// shrink tabs to fit width
                    _positionAtTop = false;						// draw tabs at bottom of control
                    _showClose = false;							// do not show the close button
                    _showArrows = false;						// do not show the scroll arrow buttons
                    _boldSelected = false;						// do not show selected pages in bold
                    _idePixelArea = true;                       // show a one pixel border at top or bottom
                    IDEPixelBorder = false;                     // do not show a one pixel border round control
                    break;
                case VisualAppearance.MultiDocument:
                    _shrinkPagesToFit = false;					// shrink tabs to fit width
                    _positionAtTop = true;						// draw tabs at bottom of control
                    _showClose = true;							// do not show the close button
                    _showArrows = true;						    // do not show the scroll arrow buttons
                    _boldSelected = true;						// do not show selected pages in bold
                    _idePixelArea = true;                       // show a one pixel border at top or bottom
                    IDEPixelBorder = false;                     // do not show a one pixel border round control
                    break;
            }

            // These properties are the same whichever style is selected
            _hotTrack = false;							// do not hot track paes
            _dimUnselected = true;						// draw dimmed non selected pages

            // Define then starting page for drawing
            if (_tabPages.Count > 0)
                _startPage = 0;
            else
                _startPage = -1;

            _appearance = appearance;

            // Define the correct style indexer
            SetStyleIndex();
        }

        protected virtual void SetStyleIndex()
        {
            switch(_appearance)
            {
                case VisualAppearance.MultiBox:
                    // Always pretend we are plain style
                    _styleIndex = 1;
                    break;
                case VisualAppearance.MultiForm:
                case VisualAppearance.MultiDocument:
                    _styleIndex = (int)_style;
                    break;
            }
        }

        protected virtual bool HideTabsCalculation()
        {
            bool hideTabs = false;
        
            switch(_hideTabsMode)
            {
                case HideTabsModes.ShowAlways:
                    hideTabs = false;
                    break;
                case HideTabsModes.HideAlways:
                    hideTabs = true;
                    break;
                case HideTabsModes.HideUsingLogic:
                    hideTabs = (_tabPages.Count <= 1);                            
                    break;
                case HideTabsModes.HideWithoutMouse:
                    hideTabs = !_mouseOver;
                    break;
            }
            
            return hideTabs;
        }
		
        protected virtual void Recalculate()
        {
            // Reset the need for a recalculation
            _recalculate = false;

            // The height of a tab button is...
            int tabButtonHeight = _position[_styleIndex, (int)PositionIndex.ImageGapTop] + 
                                  _imageGapTopExtra +
                                  _imageHeight + 
                                  _imageGapBottomExtra + 
                                  _position[_styleIndex, (int)PositionIndex.ImageGapBottom] +
                                  _position[_styleIndex, (int)PositionIndex.BorderBottom]; 

            // The height of the tabs area is...
            int tabsAreaHeight = _position[_styleIndex, (int)PositionIndex.BorderTop] + 
                                 tabButtonHeight + _position[_styleIndex, (int)PositionIndex.TabsBottomGap];

			bool hideTabsArea = HideTabsCalculation();

            // Should the tabs area be hidden?
            if (hideTabsArea)
            {
                // ... then do not show the tabs or button controls
                _pageAreaRect = new Rectangle(0, 0, this.Width, this.Height);
                _tabsAreaRect = new Rectangle(0, 0, 0, 0);
            }
            else
            {
                if (_positionAtTop)
                {
                    // Create rectangle that represents the entire tabs area
                    _pageAreaRect = new Rectangle(0, tabsAreaHeight, this.Width, this.Height - tabsAreaHeight);

                    // Create rectangle that represents the entire area for pages
                    _tabsAreaRect = new Rectangle(0, 0, this.Width, tabsAreaHeight);
                }
                else
                {
                    // Create rectangle that represents the entire tabs area
                    _tabsAreaRect = new Rectangle(0, this.Height - tabsAreaHeight, this.Width, tabsAreaHeight);

                    // Create rectangle that represents the entire area for pages
                    _pageAreaRect = new Rectangle(0, 0, this.Width, this.Height - tabsAreaHeight);
                }
            }

            int xEndPos = 0;

            if (!hideTabsArea && _tabPages.Count > 0)
            {
                // The minimum size of a button includes its left and right borders for width,
                // and then fixed height which is based on the size of the image and font
                Rectangle tabPosition;
				
                if (_positionAtTop)
                    tabPosition = new Rectangle(0,		
                                                _tabsAreaRect.Bottom - tabButtonHeight - 
                                                _position[_styleIndex, (int)PositionIndex.BorderTop],
                                                _position[_styleIndex, (int)PositionIndex.BorderLeft] + 
                                                _position[_styleIndex, (int)PositionIndex.BorderRight],
                                                tabButtonHeight);
                else
                    tabPosition = new Rectangle(0,		
                                                _tabsAreaRect.Top + 
                                                _position[_styleIndex, (int)PositionIndex.BorderTop],
                                                _position[_styleIndex, (int)PositionIndex.BorderLeft] + 
                                                _position[_styleIndex, (int)PositionIndex.BorderRight],
                                                tabButtonHeight);

                // Find starting and ending positons for drawing tabs
                int xStartPos = _tabsAreaRect.Left + _tabsAreaStartInset;
                xEndPos = GetMaximumDrawPos();

                // Available width for tabs is size between start and end positions
                int xWidth = xEndPos - xStartPos;

                if (_multiline)
                    RecalculateMultilineTabs(xStartPos, xEndPos, tabPosition, tabButtonHeight);
                else
                    RecalculateSinglelineTabs(xWidth, xStartPos, tabPosition);
            }

            // Position of Controls defaults to the entire page area
            _pageRect = _pageAreaRect;

            // Adjust child controls positions depending on style
            if ((_style == VisualStyle.Plain) && (_appearance != VisualAppearance.MultiBox))
            {
                _pageRect = _pageAreaRect;

                // Shrink by having a border on left,top and right borders
                _pageRect.X += _plainBorderDouble;
                _pageRect.Width -= (_plainBorderDouble * 2) - 1;

                if (!_positionAtTop)
                    _pageRect.Y += _plainBorderDouble;

                _pageRect.Height -= _plainBorderDouble - 1;
				
                // If hiding the tabs then need to adjust the controls positioning
                if (hideTabsArea)
                {
                    _pageRect.Height -= _plainBorderDouble;

                    if (_positionAtTop)
                        _pageRect.Y += _plainBorderDouble;
                }
            }

            // Calcualte positioning of the child controls/forms
            int leftOffset = _ctrlLeftOffset;
            int rightOffset = _ctrlRightOffset;
            int topOffset = _ctrlTopOffset;
            int bottomOffset = _ctrlBottomOffset;

            if (_idePixelBorder && (_style == VisualStyle.IDE))
            {
                leftOffset += 2;
                rightOffset += 2;

                if (_positionAtTop || hideTabsArea)
                    bottomOffset += 2;
                    
                if (!_positionAtTop || hideTabsArea)
                    topOffset += 2;
            }
        
            Point pageLoc = new Point(_pageRect.Left + leftOffset,
                                      _pageRect.Top + topOffset);

            Size pageSize = new Size(_pageRect.Width - leftOffset - rightOffset,
                                     _pageRect.Height - topOffset - bottomOffset);

            // If in Plain style and requested to only show top or bottom border
            if ((_style == VisualStyle.Plain) && _insetBorderPagesOnly)
            {
                // Then need to increase width to occupy where borders would have been 
                pageLoc.X -= _plainBorderDouble;
                pageSize.Width += _plainBorderDouble * 2;

                if (hideTabsArea || _positionAtTop)
                {
                    // Draw into the bottom border area
                    pageSize.Height += _plainBorderDouble;
                }

                if (hideTabsArea || !_positionAtTop)
                {
                    // Draw into the top border area
                    pageLoc.Y -= _plainBorderDouble;
                    pageSize.Height += _plainBorderDouble;
                }
            }

            // Position the host panel appropriately
            _hostPanel.Size = pageSize;
            _hostPanel.Location = pageLoc;
            
            // If we have any tabs at all
            if (_tabPages.Count > 0)
            {
                Rectangle rect = (Rectangle)_tabRects[_tabPages.Count - 1];
				
				// Determine is the right scrolling button should be enabled
                _rightScroll = (rect.Right > xEndPos);
            }
            else
            {
                // No pages means there can be no right scrolling
                _rightScroll = false;
            }

            // Determine if left scrolling is possible
            _leftScroll = (_startPage > 0);

            // Handle then display and positioning of buttons
            RecalculateButtons();
        }

        protected virtual void RecalculateMultilineTabs(int xStartPos, int xEndPos, 
                                                        Rectangle tabPosition, int tabButtonHeight)
        {
            using (Graphics g = this.CreateGraphics())
            {
                // MultiBox style needs a pixel extra drawing room on right
                if (_appearance == VisualAppearance.MultiBox)
                    xEndPos-=2;
                        
                // How many tabs on this line
                int lineCount = 0;
                            
                // Remember which line is

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品萝li| 欧美精品自拍偷拍| 精品亚洲aⅴ乱码一区二区三区| 国产精品国产自产拍在线| 日韩午夜激情视频| 7777精品伊人久久久大香线蕉超级流畅 | 777午夜精品视频在线播放| 一本色道久久加勒比精品| 91一区在线观看| 色婷婷综合久色| 欧美另类videos死尸| 91精品麻豆日日躁夜夜躁| 日韩一二三四区| 国产日韩亚洲欧美综合| 中文字幕国产精品一区二区| 国产精品理伦片| 亚洲综合一区二区精品导航| 丝袜美腿亚洲一区| 韩国午夜理伦三级不卡影院| 蜜桃免费网站一区二区三区| 国产在线一区二区综合免费视频| 福利一区在线观看| 欧美亚洲国产一区在线观看网站| 91麻豆精品久久久久蜜臀| 精品电影一区二区三区| 国产精品久久久久久妇女6080 | 久久精品夜色噜噜亚洲aⅴ| 国产免费成人在线视频| 亚洲精品videosex极品| 日韩国产一区二| 处破女av一区二区| 欧美日本在线播放| 国产亚洲美州欧州综合国| 亚洲免费在线视频一区 二区| 性做久久久久久久免费看| 国产在线播放一区三区四| 97精品超碰一区二区三区| 9191久久久久久久久久久| 久久久久国产精品麻豆ai换脸| 日韩毛片高清在线播放| 日本不卡免费在线视频| 99精品视频在线免费观看| 欧美成人女星排名| 亚洲精品乱码久久久久久久久| 久草精品在线观看| 在线视频一区二区三区| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲狠狠爱一区二区三区| 国产米奇在线777精品观看| 欧美日高清视频| 日韩一区欧美小说| 国产乱对白刺激视频不卡| 欧美日本在线看| 亚洲精品国久久99热| 国产福利不卡视频| 欧美变态凌虐bdsm| 五月婷婷久久丁香| 在线影院国内精品| 亚洲欧洲美洲综合色网| 国产一区二区h| 日韩欧美国产一区二区三区| 亚洲国产综合视频在线观看| av在线综合网| 国产精品天美传媒沈樵| 国内成人免费视频| 精品国产乱码久久久久久久久 | 欧美精品一区二区三| 午夜欧美视频在线观看 | 五月婷婷另类国产| 一本一本大道香蕉久在线精品| 久久精品视频在线免费观看| 蜜臀av性久久久久av蜜臀妖精| 欧美日韩你懂的| 亚洲成人一区二区在线观看| 欧美视频在线观看一区二区| 一区二区三区加勒比av| 91免费观看视频| 日韩一区在线免费观看| eeuss鲁片一区二区三区| 亚洲天堂2016| 在线观看一区日韩| 天天色天天操综合| 日韩精品中午字幕| 国产精品99久久久| 一色屋精品亚洲香蕉网站| 91免费小视频| 婷婷久久综合九色综合伊人色| 欧美日产在线观看| 激情综合色播激情啊| 精品国产乱码久久久久久牛牛| 黑人巨大精品欧美一区| 亚洲国产成人一区二区三区| 成人美女视频在线看| 一区二区在线免费| 91精品久久久久久蜜臀| 韩日av一区二区| 成人免费小视频| 欧美精品高清视频| 精品一区二区三区影院在线午夜 | 色婷婷亚洲综合| 亚洲成国产人片在线观看| 欧美一区二区视频免费观看| 久久99精品国产.久久久久| 中文字幕欧美国产| 精品视频一区 二区 三区| 国产最新精品免费| 亚洲特级片在线| 日韩精品一区二区在线| 成人网在线播放| 天堂久久一区二区三区| 国产亚洲精品aa午夜观看| 色av综合在线| 国产一区二区三区香蕉| 亚洲国产综合在线| 国产色爱av资源综合区| 欧美吞精做爰啪啪高潮| 国产精品一品二品| 天天操天天综合网| 国产精品乱码一区二区三区软件| 欧美性大战久久久久久久蜜臀| 国产在线精品视频| 偷拍自拍另类欧美| 国产精品久久久久久户外露出| 欧美一级片在线| 色悠悠久久综合| 国产中文一区二区三区| 视频在线观看国产精品| 亚洲三级久久久| 久久久综合网站| 欧美日韩国产综合草草| 91毛片在线观看| 国产精品1区2区| 久久疯狂做爰流白浆xx| 亚洲主播在线观看| 亚洲男女一区二区三区| 国产精品久久久久影院亚瑟| 久久综合色婷婷| 日韩一区二区三区在线视频| 欧美午夜精品久久久久久超碰| 成人av资源网站| 成人一区二区三区| 国产一区二区91| 国产露脸91国语对白| 裸体歌舞表演一区二区| 免费观看在线综合色| 亚洲图片欧美视频| 亚洲一区二区三区中文字幕 | 午夜a成v人精品| 亚洲国产欧美在线| 亚洲午夜一二三区视频| 一区二区三区欧美| 一区二区三国产精华液| 亚洲一区二区三区自拍| 亚洲国产你懂的| 亚洲高清视频中文字幕| 亚洲伊人色欲综合网| 亚洲第一av色| 蜜臀av在线播放一区二区三区| 日本不卡一二三区黄网| 精品一区二区三区的国产在线播放 | 欧美国产1区2区| 国产精品欧美一级免费| 日韩一级大片在线观看| 日韩成人精品视频| 日本中文在线一区| 美女国产一区二区| 国产精品一卡二卡| 不卡的av网站| 在线视频欧美精品| 91精品久久久久久久久99蜜臂| 91精品免费在线| 久久久久久久国产精品影院| 久久久99免费| 国产精品久久777777| 亚洲激情网站免费观看| 亚洲曰韩产成在线| 美女在线一区二区| 懂色中文一区二区在线播放| 一本色道久久加勒比精品 | 天天综合天天综合色| 国产呦萝稀缺另类资源| 一本久久综合亚洲鲁鲁五月天| 欧美三区在线视频| 久久综合久久综合九色| 亚洲人成亚洲人成在线观看图片| 亚洲午夜电影网| 国产99久久久国产精品潘金 | 欧美激情一区二区在线| 一区二区三区欧美在线观看| 狠狠狠色丁香婷婷综合激情 | 国产福利一区二区| 欧美日韩国产一级片| 国产精品久久一卡二卡| 免费高清视频精品| 日本久久一区二区三区| 久久久久成人黄色影片| 亚洲高清免费视频| 国产激情一区二区三区四区| 欧美亚洲图片小说| 欧美xxx久久|