SCROLLBARGET

Synopsis
SCROLLBARGET name
Description

Output the current position of the scrollbar control that is identified by name. The output is within the range specified by SCROLLBARSET.

Example
WINDOWCREATE "main "mywindow "mytitle 0 0 100 100 []
SCROLLBARCREATE "mywindow "myscroll 25 25 50 0 [SETHEADING SCROLLBARGET "myscroll]
SCROLLBARSET "myscroll 0 360 0
Move the scrollbar and observe what happens to the turtle.
WINDOWDELETE "mywindow

SourceForge.net Logo