diff options
| author | MichaelTheShifter <[email protected]> | 2016-07-04 17:43:04 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-07-04 17:43:04 -0400 |
| commit | 6e40ae80f39c766d611b4ca29aea0f6685db80dc (patch) | |
| tree | a974377172b1d0e15f21b5c3491b100b2e0ee696 /source/WindowsFormsApplication1/Controls/WindowBorder.cs | |
| parent | 5be773d4f027ac0f00392be80d8cc5dfb67669be (diff) | |
| download | shiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.tar.gz shiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.tar.bz2 shiftos-c--6e40ae80f39c766d611b4ca29aea0f6685db80dc.zip | |
Add luatextbox widget and more.
- Syntax highlighting textbox for Lua API
- That textbox also supports C# syntax highlighting
- Added framework for custom desktop environments in Lua.
Diffstat (limited to 'source/WindowsFormsApplication1/Controls/WindowBorder.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Controls/WindowBorder.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/WindowsFormsApplication1/Controls/WindowBorder.cs b/source/WindowsFormsApplication1/Controls/WindowBorder.cs index 751cb43..79d1c20 100644 --- a/source/WindowsFormsApplication1/Controls/WindowBorder.cs +++ b/source/WindowsFormsApplication1/Controls/WindowBorder.cs @@ -223,6 +223,7 @@ namespace ShiftOS pgright.Hide(); this.Size = new Size(this.Width - pgleft.Width - pgright.Width, this.Height - pgbottom.Height); } + API.CurrentSession.InvokeWindowOp("brdr_redraw", this.ParentForm); } private void closebutton_Click(object sender, EventArgs e) @@ -405,7 +406,7 @@ namespace ShiftOS pnlicon.Image = this.AppIcon; //Replace with the correct icon for the program. } - + API.CurrentSession.InvokeWindowOp("tbar_redraw", this.ParentForm); } public void rollupanddown() @@ -446,6 +447,7 @@ namespace ShiftOS } lbtitletext.ForeColor = API.CurrentSkin.titletextcolour; } + API.CurrentSession.InvokeWindowOp("tbar_redraw", this.ParentForm); } // ERROR: Handles clauses are not supported in C# @@ -649,7 +651,7 @@ namespace ShiftOS pgbottomrcorner.BackgroundImageLayout = (ImageLayout)API.CurrentSkin.bottomrightcornerlayout; pgbottomlcorner.BackgroundImageLayout = (ImageLayout)API.CurrentSkin.bottomleftcornerlayout; - + API.CurrentSession.InvokeWindowOp("redraw", this.ParentForm); } // ERROR: Handles clauses are not supported in C# @@ -660,6 +662,7 @@ namespace ShiftOS e.Cancel = true; WindowComposition.CloseForm(this.ParentForm, pbtn, API.CurrentSkin.WindowCloseAnimation); } + API.CurrentSession.InvokeWindowOp("close", this.ParentForm); } } #endregion |
