Example #1
0
 private void FastMultiChartMouseUp(object sender, MouseEventArgs e)
 {
     if (draggingBorder != DraggingBorder.None)
     {
         draggingBorder = DraggingBorder.None;
         Invalidate();
     }
 }
Example #2
0
 private void FastMultiChartMouseDown(object sender, MouseEventArgs e)
 {
     draggingBorder = GetBorder(e.Location);
     if (draggingBorder != DraggingBorder.None)
     {
         return;
     }
     if (e.Button == MouseButtons.Left && e.Location.Y >= ClientSize.Height - marginYBottom - scrollBarHeight &&
         e.Location.Y <= ClientSize.Height - marginYBottom)
     {
         int newMin, newMax;
         CalcScrollBarWindow(e.Location, out newMin, out newMax);
         if (newMin != MinX || newMax != MaxX)
         {
             MinX = newMin;
             MaxX = newMax;
             UpdateMinMax();
             Invalidate();
         }
     }
 }
Example #3
0
 private void FastMultiChartMouseUp(object sender, MouseEventArgs e)
 {
     if (draggingBorder != DraggingBorder.None)
     {
         draggingBorder = DraggingBorder.None;
         Invalidate();
     }
 }
Example #4
0
 private void FastMultiChartMouseDown(object sender, MouseEventArgs e)
 {
     draggingBorder = GetBorder(e.Location);
     if (draggingBorder != DraggingBorder.None)
         return;
     if (e.Button == MouseButtons.Left && e.Location.Y >= ClientSize.Height - marginYBottom - scrollBarHeight &&
         e.Location.Y <= ClientSize.Height - marginYBottom)
     {
         int newMin, newMax;
         CalcScrollBarWindow(e.Location, out newMin, out newMax);
         if (newMin != MinX || newMax != MaxX)
         {
             MinX = newMin;
             MaxX = newMax;
             UpdateMinMax();
             Invalidate();
         }
     }
 }