Insert: Axis Scrollbar
Add scrollbar to graph for zooming and panning
1. axis_scrollbar axis:=top;
2. axis_scrollbar begin:=5 end:=10 rescale:=1;
Specifies the position of the axis scrollbar and the axis that is associated with it.
Specifies the initial value of the scale.
Specifies the final value of the scale.
Specifies the index of the layer, to which the scrollbar will be added.
Specifies whether to rescale the layer according to the begin variable and the end variable as soon as the scrollbar is added to the graph layer.
This X-Function adds an axis scrollbar to a graph layer, allowing user to zoom and pan the layer easily.
The axis scrollbar is comprised of a scroll box and a scroll area. The scroll box can be resized and moved. The ratio of its size to the size of the whole scrollbar reflects the ratio of the current range to the full range. To zoom in the layer, make this scroll box larger; to zoom out, make it smaller. The relative position of the scroll box reflects the initial value and the final value of the scale. Therefore, you can move this scroll box so as to pan the layer.
1. To add a top axis scrollbar to the active graph, choose Insert: Axis Scrollbar: Top from the Origin menu.
2. To specify the initial and end values of the scale while adding the scrollbar, choose Insert: Axis Scrollbar: Open Dialog from the Origin menu can change the settings in the dialog of the X-Function.