bgiGetScrollPanelScrollY

Gets the current vertical scroll position. Takes scrollPanelID (Int). Returns the current vertical scroll position of a scroll panel.

BGI GUI

Parameters & Returns

Parameters

scrollPanelID Int

Returns

Int

Quick Summary

Gets the current vertical scroll position. Takes scrollPanelID (Int). Returns the current vertical scroll position of a scroll panel.

Technical Exegesis...

Returns the current vertical scroll position of a scroll panel. Searches gizmoMap for the panel, then calls GetScrollInfo with SIF_POS on the vertical scrollbar. Returns the scroll position in pixels (0 = topmost, increases as scrolled down). Returns 0 if panel not found or has no vertical scrollbar.

Useful for saving/restoring scroll positions or synchronizing multiple scroll panels. The maximum scroll position is (virtualHeight - panelHeight). Position 0 shows the top edge of the virtual canvas.

Example

Example.bam
; No example implemented yet