SetPanelScrollY panel,y

Parameters

panel - panel gadget made scrollable with SetPanelScroll

y - content position, in logical pixels, to show at the panel's top edge

Description

Scrolls a scrolling panel to a position.

The position is clamped between 0 and the point where the bottom of the content meets the bottom of the panel, so SetPanelScrollY panel,0 always returns to the top. To bring a particular child into view, scroll to its GadgetY.

A panel that does not scroll ignores this command.


See also: SetPanelScroll, PanelScrollY, GadgetY.

Index