Пример #1
0
 private void SpeedShow_Resize(object sender, EventArgs e)
 {
     //设置坐标系偏移量
     offsetX = tempOffsetX = 10;
     offsetY = tempOffsetY = VelDisplay.Bottom / 2;
     //SetRoomAndHScrollBar();
     VelDisplay.Refresh();
 }
Пример #2
0
 //比例调节滚动条
 private void ZoomLScrollBar_Scroll(object sender, ScrollEventArgs e)
 {
     zoomL = 0.15f + ZoomLScrollBar.Value * 0.01f;
     //SetRoomAndHScrollBar();
     VelDisplay.Refresh();
 }
Пример #3
0
 //移动滚动条
 private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
 {
     offsetX = -VelDisplay.Right / PERCENT * hScrollBar1.Value;
     VelDisplay.Refresh();
 }
Пример #4
0
 private void VelDisplayBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     VelDisplay.Refresh();
 }