xtd 0.2.0
Loading...
Searching...
No Matches

◆ small_change() [2/2]

virtual scroll_bar & xtd::forms::scroll_bar::small_change ( int32  small_change)
virtual

Sets the value to be added to or subtracted from the xtd::forms::scroll_bar::value property when the scroll box is moved a small distance.

Parameters
small_changeA numeric value. The default value is 1.
Exceptions
xtd::argument_out_of_range_exceptionThe assigned value is less than 0.
Remarks
When the user presses one of the arrow keys or clicks one of the scroll bar buttons, the xtd::forms::scroll_bar::value property changes according to the value set in the xtd::forms::scroll_bar::small_change property.
User interface guidelines suggest that the xtd::forms::scroll_bar::small_change and xtd::forms::scroll_bar::large_change properties are set relative to the size of the view that the user sees, not to the total size including the unseen part. For example, if you have a picture box with scroll bars displaying a large image, the xtd::forms::scroll_bar::small_change and xtd::forms::scroll_bar::large_change properties should be set relative to the size of the picture box, not to the size of the image.