From 6c5f8c6381166edf0824aed78a1c3f05b0c562d1 Mon Sep 17 00:00:00 2001 From: TheUltimateHacker Date: Wed, 27 May 2015 20:39:48 -0400 Subject: Draggable Windows in the BWM We're one step closer to the full Basic Window Manager implementation. I've created a UserControl called "TitleBar" for the BWM. This UserControl contains the window handling code for draggable windows, as well as a design-time settable AppName property that allows you to change the application display name (what text is shown on the titlebar). Shiftorium upgrades to unlock Draggable Windows will be added soon, but I have to clean the beast. --- shiftos_next/Terminal.vb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'shiftos_next/Terminal.vb') diff --git a/shiftos_next/Terminal.vb b/shiftos_next/Terminal.vb index 50df6bc..25a3e21 100644 --- a/shiftos_next/Terminal.vb +++ b/shiftos_next/Terminal.vb @@ -17,15 +17,7 @@ Public Sub terminal_Innitiate(sender As Object, e As EventArgs) Handles MyBase.Load Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None API.txtterm = Me.terminaltext - If boughtbasicwm = True Then - pnltop.Show() - Me.WindowState = FormWindowState.Normal - Me.Left = (Screen.PrimaryScreen.Bounds.Width - Me.Width) / 2 - Me.Top = (Screen.PrimaryScreen.Bounds.Height - Me.Height) / 2 - Else - pnltop.Hide() - Me.WindowState = FormWindowState.Maximized - End If + pnltop.DetermineMyVisibility() AddLine(username + "@" + osname + " " & currentdir.ToLower.Replace("c:\shiftos", "~") & "$> ") SelectBottom() If prompttoupdatesave = True Then -- cgit v1.2.3