public ScrollBarThumb(ScrollBarThumbDefaults type) { this._imageAttributes = new ImageAttributes(); this._imageAttributes.ClearColorKey(); this._gripImageAttributes = new ImageAttributes(); this._gripImageAttributes.ClearColorKey(); switch (type) { case ScrollBarThumbDefaults.Normal: this._color = SystemColors.ScrollBar; this._gripColor = SystemColors.ControlText; break; case ScrollBarThumbDefaults.Highlight: this._color = SystemColors.ControlText; this._gripColor = SystemColors.HighlightText; break; } this._borderStyle = ScrollBarBorderStyle.Solid; this._borderColor = SystemColors.ControlText; this._gradientColor = new Resco.Controls.ScrollBar.GradientColor(FillDirection.Horizontal); this._gradientColor.PropertyChanged += new EventHandler(this.GradientColor_PropertyChanged); this._image = null; this._imageLayout = ScrollBarThumbImageLayout.Stretch; this._imageTransparentColor = System.Drawing.Color.Transparent; this._gripStyle = ScrollBarThumbGripStyle.Lines; this._gripImage = null; this._gripImageTransparentColor = System.Drawing.Color.Transparent; this._gripLines = 3; }