summaryrefslogtreecommitdiff
path: root/shiftos_next/Desktop Environments/BWMDesktop.vb
diff options
context:
space:
mode:
authorTheUltimateHacker <[email protected]>2015-05-28 21:42:26 -0400
committerTheUltimateHacker <[email protected]>2015-05-28 21:42:26 -0400
commit424931951bf55c2db7a7cb3228bfccc03ea62287 (patch)
treecf3f0f95ec7ccc914268496ff9acb6d80a29a37c /shiftos_next/Desktop Environments/BWMDesktop.vb
parent6c5f8c6381166edf0824aed78a1c3f05b0c562d1 (diff)
downloadshiftos-next-424931951bf55c2db7a7cb3228bfccc03ea62287.tar.gz
shiftos-next-424931951bf55c2db7a7cb3228bfccc03ea62287.tar.bz2
shiftos-next-424931951bf55c2db7a7cb3228bfccc03ea62287.zip
Shiftorium - Draggable Windows upgrade + Bugfixes
Alright, I've added the Draggable Windows upgrade to the Shiftorium, as well as fixed a quick bug causing "No Items Available" to display when there were items clearly available. I've also fixed a positioning bug with BWM windows causing them to start in the center of the screen, relative to the titlebar, rather than the form. I've also re-arranged the code a bit, organizing files in folders. APIs are in the APIs folder, Desktop Environments are in the Desktop Environments folder, etc. The shiftorium still doesn't have draggable window functionality yet...
Diffstat (limited to 'shiftos_next/Desktop Environments/BWMDesktop.vb')
-rw-r--r--shiftos_next/Desktop Environments/BWMDesktop.vb29
1 files changed, 29 insertions, 0 deletions
diff --git a/shiftos_next/Desktop Environments/BWMDesktop.vb b/shiftos_next/Desktop Environments/BWMDesktop.vb
new file mode 100644
index 0000000..07841a5
--- /dev/null
+++ b/shiftos_next/Desktop Environments/BWMDesktop.vb
@@ -0,0 +1,29 @@
+Namespace BasicWM
+ Public Class Desktop
+
+ Public openterminals As Integer = 0
+
+ Private Sub btnnewterminal_Click(sender As Object, e As EventArgs) Handles btnnewterminal.Click
+ If openterminals = 3 Then
+ AddLine("The maximum ammount of Terminal windows are open.")
+ AddLine(username + "@" + osname + " " & Terminal.currentdir.ToLower.Replace("c:\shiftos", "~") & "$> ")
+ Else
+ Dim term As New Terminal
+ term.StartPosition = FormStartPosition.CenterParent
+ term.TopMost = True
+ term.Show()
+ openterminals += 1
+ End If
+ End Sub
+
+ Private Sub Desktop_Load(sender As Object, e As EventArgs) Handles MyBase.Load
+ Terminal.Close()
+ Me.WindowState = FormWindowState.Maximized
+ Dim term As New Terminal
+ term.StartPosition = FormStartPosition.CenterParent
+ term.TopMost = True
+ term.Show()
+ openterminals += 1
+ End Sub
+ End Class
+End Namespace \ No newline at end of file