Reading a window's scrollbar position

Hey everyone

I was wondering: if my Web page is higher than the screen, is it possible to locate the browser’s scrollbar position if I want, for example, to keep some elements (like a menu) always in the top-left hand corner of the Webpage? It works with the built-in scrollbar. I just have to read the value and set the element to those coordinate. Unfortunately, the browser add his own scrollbar to mine…



There is a Javascript way :

In Xojo, you may simply want to make sure your page does not exceed self.height which reports the height of the browser so it does not scroll by itself, and if you must provide scrolling, do that within your page using a WebContainer. The container control will provide a scroll bar, but the browser itself will not scroll, so you can keep your menu on top.