Home > Back-end >  How do you know ScrollBox has already reached the bottom of the scroll bar
How do you know ScrollBox has already reached the bottom of the scroll bar

Time:09-30

1, how to know ScrollBox has already reached the bottom of the scroll bar or the bottom?
2, click on the scroll bar, the arrow, what events trigger?

Thank you for your attention

CodePudding user response:

Procedure TCustomGrid. WMVScroll (var Msg: TWMVScroll);
The begin
ModifyScrollBar (SB_VERT, Msg. ScrollCode, Msg. Pos, True);
end;
Procedure TCustomGrid. WMHScroll (var Msg: TWMHScroll);
The begin
ModifyScrollBar (SB_HORZ, Msg. ScrollCode, Msg. Pos, True);
end;
Trigger the two events, as to determine whether to reach the bottom, need to manually
  • Related