Example:
-- get value of TheScroll integer pos pos = getHScrollPos( myWindow )
See Also: getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
This value is set by setScrollChange. The default value is {1,10}, indicating the small change and large change amounts.
Example:
-- get change amount for TheScroll sequence change change = getScrollChange( TheScroll )
See Also: getHScrollPos, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
id is the Id of a control. The control must be one of...
Note that this function returns the last position of the thumb while it was resting. Use getThumbPos() instead to track the thumb position while it is being dragged.
Example:
-- get value of TheScroll integer pos,vpos,hpos pos = getScrollPos( TheScroll ) vpos = getScrollPos( {MainWin, SB_VERT} ) hpos = getScrollPos( {MainWin, SB_HORZ} )
See Also: getHScrollPos, getScrollChange, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
Note that when id is a Window control, by default it refers to the vertical scrollbar.
Alternatively you can specify either vertical or horizontal by using the syntax {id, scrollbar}
where scrollbar is either SB_VERT or SB_HORZ.
This value is set by setScrollRange.
Example:
-- get range of TheScroll sequence range range = getScrollRange( TheScroll )
See Also: getHScrollPos, getScrollChange, getScrollPos, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
id is the Id of a control. The control must be one of...
Example:
-- get value of TheScroll integer pos,vpos,hpos pos = getThumbPos( TheScroll ) vpos = getThumbPos( {MainWin, SB_VERT} ) hpos = getThumbPos( {MainWin, SB_HORZ} )
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
Example:
-- get value of TheScroll integer pos pos = getVScrollPos( myWindow )
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
The value must be greater than zero. This will trigger an Scroll event.
Example:
-- set value of the TheScroll setHScrollPos( myWindow, 20 )
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
The linesize is the amount that the id will adjust when the up/down arrow is selected, and the pagesize is used when the page up/page down is selected.
For trackbars, the pagesize is used to determine the distance between the tick marks.
The default values are {1,10}.
Example:
-- set change amount for TheScroll setScrollChange( TheScroll, 1, 10 )
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollPos, setScrollRange, setVScrollPos, setWindowScrollRange
id is the Id of a control. The control must be one of...
The value must be greater than zero.
This routine will trigger an w32HScroll event.
Example:
-- set value of the TheScroll setScrollPos( TheScroll, 20 ) -- set the horizontal scrollbar setScrollPos( {myWindow, SB_HORZ}, 17)
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollRange, setVScrollPos, setWindowScrollRange
id is the Id of the control to be affected. This must be either a...
The initial values when a control is created are low=0, high=100.
Example:
-- set range for TheScroll setScrollRange( TheScroll, 1, 100 ) -- set the horizontal scrollbar on a window. setScrollRange( {myWindow, SB_HORZ}, 1, 289)
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setVScrollPos, setWindowScrollRange
The value must be greater than zero. This will trigger an Scroll event.
Example:
-- set value of the TheScroll setVScrollPos( myWindow, 20 )
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setWindowScrollRange
typeScroll can be one of the following :
See Also: getHScrollPos, getScrollChange, getScrollPos, getScrollRange, getThumbPos, getVScrollPos, setHScrollPos, setScrollChange, setScrollPos, setScrollRange, setVScrollPos