PanelScrollY ( panel )

Parameters

panel - panel gadget

Description

Returns how far a scrolling panel's content is scrolled, in logical pixels.

It is 0 at the top, and always 0 for a panel that does not scroll. Panels scroll once you turn it on with SetPanelScroll.

A child at GadgetY(child) appears GadgetY(child)-PanelScrollY(panel) pixels below the panel's top edge. Save the value to restore the same view later with SetPanelScrollY - for example, to keep an inspector at the same place when you rebuild its sections for another object.


See also: SetPanelScroll, SetPanelScrollY, GadgetY, CreatePanel.

Index