Пример #1
0
        public ScrollBarButton(ScrollBarButtonDefaults type)
        {
            this._imageAttributes = new ImageAttributes();
            this._imageAttributes.ClearColorKey();
            switch (type)
            {
            case ScrollBarButtonDefaults.Normal:
                this._color      = SystemColors.ScrollBar;
                this._arrowColor = SystemColors.ControlText;
                break;

            case ScrollBarButtonDefaults.Highlight:
                this._color      = SystemColors.ControlText;
                this._arrowColor = SystemColors.HighlightText;
                break;

            case ScrollBarButtonDefaults.Disabled:
                this._color      = SystemColors.ScrollBar;
                this._arrowColor = SystemColors.GrayText;
                break;
            }
            this._borderStyle   = ScrollBarBorderStyle.Solid;
            this._borderColor   = SystemColors.ControlText;
            this._borderClosed  = false;
            this._gradientColor = new Resco.Controls.ScrollBar.GradientColor(FillDirection.Horizontal);
            this._gradientColor.PropertyChanged += new EventHandler(this.GradientColor_PropertyChanged);
            this._image                      = null;
            this._arrowImage                 = null;
            this._arrowImageLayout           = ScrollBarButtonArrowImageLayout.Center;
            this._arrowImageTransparentColor = System.Drawing.Color.Transparent;
        }
Пример #2
0
        public ScrollBarButton(ScrollBarButtonDefaults type)
        {
            this._imageAttributes = new ImageAttributes();
            this._imageAttributes.ClearColorKey();
            switch (type)
            {
                case ScrollBarButtonDefaults.Normal:
                    this._color = SystemColors.ScrollBar;
                    this._arrowColor = SystemColors.ControlText;
                    break;

                case ScrollBarButtonDefaults.Highlight:
                    this._color = SystemColors.ControlText;
                    this._arrowColor = SystemColors.HighlightText;
                    break;

                case ScrollBarButtonDefaults.Disabled:
                    this._color = SystemColors.ScrollBar;
                    this._arrowColor = SystemColors.GrayText;
                    break;
            }
            this._borderStyle = ScrollBarBorderStyle.Solid;
            this._borderColor = SystemColors.ControlText;
            this._borderClosed = false;
            this._gradientColor = new Resco.Controls.ScrollBar.GradientColor(FillDirection.Horizontal);
            this._gradientColor.PropertyChanged += new EventHandler(this.GradientColor_PropertyChanged);
            this._image = null;
            this._arrowImage = null;
            this._arrowImageLayout = ScrollBarButtonArrowImageLayout.Center;
            this._arrowImageTransparentColor = System.Drawing.Color.Transparent;
        }