From 6e40ae80f39c766d611b4ca29aea0f6685db80dc Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Mon, 4 Jul 2016 17:43:04 -0400 Subject: 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. --- source/WindowsFormsApplication1/Controls/WindowBorder.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/WindowsFormsApplication1/Controls/WindowBorder.cs') 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 -- cgit v1.2.3