1、如何知道ScrollBox滾動條已經到達底部或底部?
2、點擊滾動條的上、下箭頭,觸發什么事件?
謝謝大家
uj5u.com熱心網友回復:
procedure TCustomGrid.WMVScroll(var Msg: TWMVScroll);begin
ModifyScrollBar(SB_VERT, Msg.ScrollCode, Msg.Pos, True);
end;
procedure TCustomGrid.WMHScroll(var Msg: TWMHScroll);
begin
ModifyScrollBar(SB_HORZ, Msg.ScrollCode, Msg.Pos, True);
end;
觸發這2個事件。至于判斷是否到達底部,需要手動判斷
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/100399.html
標籤:VCL組件開發及應用
