diff options
| author | lempamo <[email protected]> | 2017-07-31 21:37:59 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-31 21:37:59 -0500 |
| commit | 92fedc467a77c709b157a0ec1666bd902ad8d27e (patch) | |
| tree | 671d4f2ac21e087d7b0db9599990cc5f2bd23f75 /TimeHACK.Engine/Template/WinClassic.cs | |
| parent | 570717cf5ea87518ba2c5a483050dd518e970958 (diff) | |
| parent | 312cd741458d2cb3a9274b671ce7b55bcd680849 (diff) | |
| download | histacom2-92fedc467a77c709b157a0ec1666bd902ad8d27e.tar.gz histacom2-92fedc467a77c709b157a0ec1666bd902ad8d27e.tar.bz2 histacom2-92fedc467a77c709b157a0ec1666bd902ad8d27e.zip | |
Merge pull request #143 from jtsshieh/master
WIndow Resize
Diffstat (limited to 'TimeHACK.Engine/Template/WinClassic.cs')
| -rw-r--r-- | TimeHACK.Engine/Template/WinClassic.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TimeHACK.Engine/Template/WinClassic.cs b/TimeHACK.Engine/Template/WinClassic.cs index 3f69115..ca55c59 100644 --- a/TimeHACK.Engine/Template/WinClassic.cs +++ b/TimeHACK.Engine/Template/WinClassic.cs @@ -66,6 +66,30 @@ namespace TimeHACK.Engine.Template Title.ForeColor = SaveSystem.currentTheme.inactiveTitleTextColor; } + private void right_MouseMove(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Left) + { + this.Size = new Size(MousePosition.X - this.Location.X, this.Size.Height); + } + } + + private void left_MouseMove(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Left) + { + this.Size = new Size(this.Size.Width + (this.Location.X - MousePosition.X), this.Size.Height); + this.Location = new Point(MousePosition.X, this.Location.Y); + } + } + + private void bottom_MouseMove(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Left) { + this.Size = new Size(this.Size.Width, MousePosition.Y - this.Location.Y); + } + } + public bool max = false; private void maximizebutton_Click(object sender, EventArgs e) |
