Spread Windows Forms 8.0 Product Documentation
TrackBarSelectedBackgroundColor Property
Example 


Gets or sets the color of the track bar selected background.
Syntax
'Declaration
 
Public Property TrackBarSelectedBackgroundColor As Color
'Usage
 
Dim instance As EnhancedScrollBarRenderer
Dim value As Color
 
instance.TrackBarSelectedBackgroundColor = value
 
value = instance.TrackBarSelectedBackgroundColor
public Color TrackBarSelectedBackgroundColor {get; set;}

Property Value

The color of the track bar selected background.
Example
This example customizes the scrollbar.
FarPoint.Win.Spread.EnhancedScrollBarRenderer r = new FarPoint.Win.Spread.EnhancedScrollBarRenderer();
r.ArrowColor = Color.Red;
r.ArrowHoveredColor = Color.Orange;
r.ArrowSelectedColor = Color.DarkRed;
r.ButtonBackgroundColor = Color.Crimson;
r.ButtonBorderColor = Color.Azure;
r.ButtonHoveredBackgroundColor = Color.DarkSalmon;
r.ButtonHoveredBorderColor = Color.Tomato;
r.ButtonSelectedBackgroundColor = Color.Thistle;
r.ButtonSelectedBorderColor = Color.Tomato;
r.TrackBarBackgroundColor = Color.White;
r.TrackBarSelectedBackgroundColor = Color.IndianRed;
FarPoint.Win.Spread.SpreadSkin SpreadSkin = new FarPoint.Win.Spread.SpreadSkin(fpSpread1.Skin);
SpreadSkin.ScrollBarRenderer = r;
SpreadSkin.Apply(fpSpread1);
Dim r As New FarPoint.Win.Spread.EnhancedScrollBarRenderer
r.ArrowColor = Color.Red
r.ArrowHoveredColor = Color.Orange
r.ArrowSelectedColor = Color.DarkRed
r.ButtonBackgroundColor = Color.Crimson
r.ButtonBorderColor = Color.Azure
r.ButtonHoveredBackgroundColor = Color.DarkSalmon
r.ButtonHoveredBorderColor = Color.Tomato
r.ButtonSelectedBackgroundColor = Color.Thistle
r.ButtonSelectedBorderColor = Color.Tomato
r.TrackBarBackgroundColor = Color.White
r.TrackBarSelectedBackgroundColor = Color.IndianRed
Dim SpreadSkin = New FarPoint.Win.Spread.SpreadSkin(FpSpread1.Skin)
SpreadSkin.ScrollBarRenderer = r
SpreadSkin.Apply(FpSpread1)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

EnhancedScrollBarRenderer Class
EnhancedScrollBarRenderer Members

 

 


Copyright © GrapeCity, inc. All rights reserved.