TWebPanel static on top of Browser-Window

If a TWebPanel is placed on top of a form this TWebPanel disapears when scrolling down a longer page of course.
Is it possible to "pin" a TWebPanel on top of the page that is always visible on top regardless of the Scroll-Position of the form ?

There are a lot of samples doing that by nesting the form into the main html page, but I'm interested in doing that on any form with different TWebPanels.

I searched in all demos, books and videos but could not find a proper way.

Thanks/Regards, Tom

There is not a property for this, but this simple event handler should do this:

procedure TForm2.WebFormScroll(Sender: TObject);
begin
  webpanel1.Top := window.scrollY;
end;

Hey Bruno - that works pretty well - great !
It's really impressive that WebCore always has an answer - I'm still not used to look at the right places...

Thanks/Regards, Tom

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.