Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example sets the scroll bar colors and the height of the horizontal scroll bar and width of the vertical scroll bar.

C++

// Set horizontal scroll bar color to yellow
m_Spread.SetScrollBarHColor(0x0000FFFF);
// Set vertical scroll bar color to blue
m_Spread.SetScrollBarVColor(0x800000);
// Set scroll bar height, horizontal scroll bar
m_Spread.SetScrollBarHeight(25);
// Set scroll bar width, vertical scroll bar
m_Spread.SetScrollBarWidth(25);

Visual Basic

' Set horizontal scroll bar color to blue
fpSpread1.ScrollBarHColor = &HFF0000
' Set vertical scroll bar color to red
fpSpread1.ScrollBarVColor = &HFF&
' Set scroll bar height, horizontal scroll bar
fpSpread1.ScrollBarHeight = 25
' Set scroll bar width, vertical scroll bar
fpSpread1.ScrollBarWidth = 25

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.