I have tried to use scrollbars and have come up with some curious results. I don't know if it is me or what, but here goes....
I've attached a stripped-down app comprising a scroll bar (one axis of pan) and a zoom (using little buttons). My intention was to use this to zoom and pan a graphic.
The app consists of 3 components: the stack script ("Test Zoom_Scroll.src") and the scrollbar scripts ("Zoombar" and "Scrollbar").
A couple of problems exist:
1] When you FIRST execute this app it doesn't have the scrollbars enabled (or the app doesn't execute). You have to "start" it with the Tools Palette. Is this normal?
2] The Scrollbar script is supposed to handle any movement of the scrollbar. However, I am unable to get the program to recognise the initial Properties settings of the 'reset_scrollbar' routine. It seems to ignore them and start with particular defaults (e.g. lineInc = 2).
3] Stranger still, the result is not regular. I you click on the right arrow of the scrollbar, the displayed number (the 'thumbposition' of the bar) increments using a strange progression (instead of by 1). It uses: 0, 2, 5, 7, 9, 11, 14, 16, 18, 20, 23, 25, 27, 29, 32... etc I guess it may become regular and one could construct a formula for generating the series. It should be: 0,1,2,3,4,5,6,7..... etc
The Zoom bar seems to behave well. It is intended to zoom from 0 to 90 in steps of 10.
Can anyone point a finger at what is going on here?
