diff options
| author | a1xd <[email protected]> | 2020-10-08 23:12:08 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-08 23:12:08 -0400 |
| commit | f4c04b4eb03fdbf1f3402dfb26e891ce8d968c9f (patch) | |
| tree | 2da2e0e956c8b92c24260ec9ed4fa3f0681c0a1a /grapher/Form1.cs | |
| parent | Fixed anisotropy not loading correctly on save (diff) | |
| parent | add magic number to constants (diff) | |
| download | rawaccel-1.1.0.tar.xz rawaccel-1.1.0.zip | |
Merge pull request #33 from a1xd/1.1v1.1.0
1.1
Diffstat (limited to 'grapher/Form1.cs')
| -rw-r--r-- | grapher/Form1.cs | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs index a1d43b3..446618b 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -50,6 +50,7 @@ namespace grapher accelTypeDropX, accelTypeDropY, writeButton, + toggleButton, showVelocityGainToolStripMenuItem, showLastMouseMoveToolStripMenuItem, wholeVectorToolStripMenuItem, @@ -58,7 +59,6 @@ namespace grapher legacyCapToolStripMenuItem, gainOffsetToolStripMenuItem, legacyOffsetToolStripMenuItem, - AutoWriteMenuItem, ScaleMenuItem, DPITextBox, PollRateTextBox, @@ -155,11 +155,35 @@ namespace grapher } + public void ResetAutoScroll() + { + chartsPanel.AutoScrollPosition = Constants.Origin; + } + + public void DoResize() + { + ResetAutoScroll(); + + var workingArea = Screen.PrimaryScreen.WorkingArea; + var chartsPreferredSize = chartsPanel.GetPreferredSize(Constants.MaxSize); + + Size = new Size + { + Width = Math.Min(workingArea.Width - Location.X, optionsPanel.Size.Width + chartsPreferredSize.Width), + Height = Math.Min(workingArea.Height - Location.Y, chartsPreferredSize.Height + 48) + }; + } + private void RawAcceleration_Paint(object sender, PaintEventArgs e) { //AccelGUI.AccelCharts.DrawLastMovement(); } #endregion Method + + private void optionsPanel_Paint(object sender, PaintEventArgs e) + { + + } } } |