ComponentOne True DBInput Pro 8.0
ScrollYear Method (TDBCalendar)

This method scrolls the calendar years according to the number of years specified. The ScrollYear method is provided to scroll years from the current view displayed in the calendar. Positive offsets scroll down and negative offsets scroll up. View offsets that are out of range will be scrolled automatically to the beginning or the end of the months specified with the MaxDate and the MinDate properties.

Syntax

TDBCalendar.ScrollYearYearOffset

Arguments

yearoffset is a required long integer that denotes the number of years to scroll and the direction in which to scroll them.

Return Value

None

Remarks

The ScrollYear method will fire the Scroll event when called. Do not use this method in the Scroll event, because this may cause recursive dead loops.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback