Gets the current horizontal scroll position.
Takes scrollPanelID (Int).
Returns the current horizontal scroll position of a scroll panel.
BGI GUI
Parameters & Returns
Parameters
scrollPanelIDInt
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.
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. Use bgiSetScrollPanelScrollX to programmatically scroll to a specific position.