Scroller Parameters

The constructor method for scrollbar objects uses 5 parameters.

Scrollbar(Scrollbar.VERTICAL, 0,1,0,100)

  1. The first parameter obviously sets the orientation of the scroll bar. The possible values are VERTICAL and HORIZONTAL.
  2. The second parameter sets the initial value. Usually you will use the minimum value but in some cases you might want to set it somewhere else.
  3. The third parameter sets the interval. Usually this will be 1.
  4. The next 2 numbers represent the range of the scrollbar.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License