[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Handler for scroll bar movement messages.
Source position: forms.pp line 127
protected procedure TControlScrollBar.ScrollHandler( |
var Message: TLMScroll |
); |
Message |
|
Control message examined in the method. |
ScrollHandler is a method used to ensure that the control message in Message is applied to the Position property for the scroll bar. ScrollHandler uses the ScrollCode member from the TLMScroll instance to determine the actions needed in the method. It handles the following ScrollCode values:
No actions are performed in the method if Message has any other value in its ScrollCode member. No actions are performed in the method at design-time.
ScrollHandler ensures the new value for the Position property is in the range 0..Range. Calls InvalidateScrollInfo to force scroll bar information to be re-initialized. Calls SetPosition to apply the new value for the Position property and scrolls the associated TScrollingWinControl accordingly. Sets the Result member in Message to 1 to indicate the control message was handled in the method.
ScrollHandler is called when the WMHScroll or WMVScroll methods in the associated TScrollingWinControl instance are used to handle scroll messages.
|
Number of pixels the display area is scrolled for scroll bar or mouse wheel movements. |
|
|
Number of pixels needed for a page on the associated control. |
|
|
Position of the scroll bar slider in the range 0..Range-Page. |
|
|
The size of the logical display area on the associated control for the scroll bar orientation. |
|
|
Delegates scroll messages to the handler for the horizontal scroll bar. |
|
|
Delegates scroll messages to the handler for the vertical scroll bar. |
Version 4.0 | Generated 2025-05-03 | Home |