Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Application.ViewPort OnScroll event
Thu, Oct 20 2016 10:08 AMPermanent Link

Ivan Mihailov

Hi all,

If I use application's surface as a scrollable area, there is not problem to
handle OnScroll event of the application's surface.
But how to handle OnScroll event of the application's viewport (browser window)?
Is there any way this can be done?

Sorry for my poor English,
Ivan Mihailov
Fri, Oct 21 2016 10:47 AMPermanent Link

Ivan Mihailov

Hi,

I found the answer of my question:

window.addEventListener('scroll', MyListener, true);

where MyListener is something like that

function TfMain.MyListener(event: TEvent): Boolean;
begin
   ..........
   Result      := true;
end;



Ivan Mihailov wrote:

Hi all,

If I use application's surface as a scrollable area, there is not problem to
handle OnScroll event of the application's surface.
But how to handle OnScroll event of the application's viewport (browser window)?
Is there any way this can be done?

Sorry for my poor English,
Ivan Mihailov
Fri, Oct 21 2016 3:54 PMPermanent Link

Trinione

Great! Thanks for sharing. I'll try this out soon enough.
Image