Detect when Delphi FMX ListBox is scrolled to the bottom?
问题 I need to detect when the user has scrolled down to the bottom in a ListBox , so that I can fetch the next 25 items to show in the listBox, Any Tip? 回答1: Okay so let us break this down, first we go to ScrollToItem in FMX.ListBox unit procedure TCustomListBox.ScrollToItem(const Item: TListBoxItem); begin if (Item <> nil) and (Content <> nil) and (ContentLayout <> nil) then begin if VScrollBar <> nil then begin if Content.Position.Y + Item.Position.Y + Item.Margins.Top + Item.Margins.Bottom +