Recent

Author Topic: [CLOSED] Scrollbox detect vertical scroll  (Read 1545 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
[CLOSED] Scrollbox detect vertical scroll
« on: January 28, 2022, 11:18:48 pm »
How can I detect when a scrollbox is vertically scrolled and when it can't scroll anymore?

NOT NEEDED ANYMORE
« Last Edit: January 29, 2022, 12:23:05 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Scrollbox detect vertical scroll
« Reply #1 on: January 29, 2022, 12:43:32 am »

https://docs.microsoft.com/en-us/windows/win32/controls/wm-vscroll


That may help you. With laz you use the LMessages and LM_VSCROLL I think..

otherwise you can use the windows unit and WM_VSCROLL to override the message
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Scrollbox detect vertical scroll
« Reply #2 on: January 29, 2022, 12:48:50 am »
How can I detect when a scrollbox is vertically scrolled and when it can't scroll anymore?

Hmm, maybe you are talking about the  Position of the scrollbar and size of the client height.?

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018