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