Spread Windows Forms 7.0 Product Documentation
ScrollTipPolicy Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ScrollTipPolicy Property


Glossary Item Box

Gets or sets whether scroll tips appear when the user moves the scroll box in the component.

Syntax

Visual Basic (Declaration) 
Public Property ScrollTipPolicy As ScrollTipPolicy
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As ScrollTipPolicy
 
instance.ScrollTipPolicy = value
 
value = instance.ScrollTipPolicy
C# 
public ScrollTipPolicy ScrollTipPolicy {get; set;}

Property Value

ScrollTipPolicy setting that determines whether the Spread component displays the text tip when the user moves the scroll box

Remarks

This property allows the user to see the row number (for vertical scrolling) or column number (for horizontal scrolling). By holding the pointer on the scroll bar, the number appears in a ToolTip window.

Here is a typical scroll bar tip with the row number displayed next to the vertical scroll bar:

Scroll bar tips are not displayed automatically by default.

Of course, the scroll bars must be displayed for the scroll bar tips to be displayed.

The appearance of the default scroll bar tips is determined by your system settings and other default settings. The appearance is also set by the TextTipAppearance property and the members of the TipAppearance class.

Example

This example specifies several aspects of the scroll bars for the Spread component. Scroll bars appear larger than the default size. For scrolling horizontally, the spreadsheet scrolls as you move the scroll box; for scrolling vertically, the scroll bar tip shows the row number, but the spreadsheet does not scroll until you are done.
C#Copy Code
FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread();
FarPoint.Win.Spread.SheetView shv = new FarPoint.Win.Spread.SheetView();
fpSpread1.Location = new Point(10, 10);
fpSpread1.Height = 200;
fpSpread1.Width = 400;
Controls.Add(fpSpread1);
fpSpread1.Sheets.Add(shv);
fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both;
Visual BasicCopy Code
Dim fpSpread1 As New FarPoint.Win.Spread.FpSpread()
Dim shv As New FarPoint.Win.Spread.SheetView()
fpSpread1.Location = New Point(10, 10)
fpSpread1.Height = 200
fpSpread1.Width = 400
Controls.Add(fpSpread1)
fpSpread1.Sheets.Add(shv)
fpSpread1.ScrollTipPolicy = FarPoint.Win.Spread.ScrollTipPolicy.Both

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

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