Beispiel #1
0
 public void SetScrollBarsValues(int[] left, int[] top) // 15/12/04
     {
   int maxsize = ScrollBar1.getMaximum();
   if (left[0] < 0) left[0] = 0;
   else if (left[0] > maxsize) left[0] = maxsize;
   ScrollBar1.setValues(left[0], 30, 0, maxsize);
   maxsize = ScrollBar2.getMaximum();
   if (top[0] < 0) top[0] = 0;
   else if (top[0] > maxsize) top[0] = maxsize;
   ScrollBar2.setValues(top[0], 30, 0, maxsize);
 }
Beispiel #2
0
 @Override
 public int getMaximum() {
   return bar.getMaximum();
 }