bgiGetScrollPanelScrollX

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

BGI GUI

Parameters & Returns

Parameters

scrollPanelID Int

Returns

Int

Quick Summary

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

Technical Exegesis...

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

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

Example

Example.bam
; No example implemented yet