diff options
| author | EverythingWindows <[email protected]> | 2022-11-21 10:43:53 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-21 10:43:53 +0700 |
| commit | c5b2c3e370cf17a4b4ee3d5a4928e3663ab72a1d (patch) | |
| tree | d8163ca4462d33f061335973d19be2ddabbc0c8c /ShiftOS-TheRevival/MainForms/Applications | |
| parent | 3f4edf1b79ee4ee5a73251930af641bcd0db225e (diff) | |
| download | shiftos-therevival-old-c5b2c3e370cf17a4b4ee3d5a4928e3663ab72a1d.tar.gz shiftos-therevival-old-c5b2c3e370cf17a4b4ee3d5a4928e3663ab72a1d.tar.bz2 shiftos-therevival-old-c5b2c3e370cf17a4b4ee3d5a4928e3663ab72a1d.zip | |
Dual Window Manager development
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/Applications')
5 files changed, 46 insertions, 3 deletions
diff --git a/ShiftOS-TheRevival/MainForms/Applications/Console.Designer.vb b/ShiftOS-TheRevival/MainForms/Applications/Console.Designer.vb index 78dbfbf..861f2ec 100644 --- a/ShiftOS-TheRevival/MainForms/Applications/Console.Designer.vb +++ b/ShiftOS-TheRevival/MainForms/Applications/Console.Designer.vb @@ -29,6 +29,7 @@ Partial Class Console Me.InfoBarTimer = New System.Windows.Forms.Timer(Me.components) Me.ToolBar = New System.Windows.Forms.TextBox() Me.ShortcutHandler = New System.ComponentModel.BackgroundWorker() + Me.DuWMHandle = New System.Windows.Forms.Timer(Me.components) Me.SuspendLayout() ' 'TextBox1 @@ -80,6 +81,9 @@ Partial Class Console Me.ToolBar.TabIndex = 1 Me.ToolBar.Visible = False ' + 'DuWMHandle + ' + ' 'Console ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) @@ -104,4 +108,5 @@ Partial Class Console Friend WithEvents InfoBarTimer As Timer Friend WithEvents ToolBar As TextBox Public WithEvents ShortcutHandler As System.ComponentModel.BackgroundWorker + Friend WithEvents DuWMHandle As Timer End Class diff --git a/ShiftOS-TheRevival/MainForms/Applications/Console.resx b/ShiftOS-TheRevival/MainForms/Applications/Console.resx index 38ebc49..eedeb82 100644 --- a/ShiftOS-TheRevival/MainForms/Applications/Console.resx +++ b/ShiftOS-TheRevival/MainForms/Applications/Console.resx @@ -126,4 +126,7 @@ <metadata name="ShortcutHandler.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>274, 17</value> </metadata> + <metadata name="DuWMHandle.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>415, 17</value> + </metadata> </root>
\ No newline at end of file diff --git a/ShiftOS-TheRevival/MainForms/Applications/Console.vb b/ShiftOS-TheRevival/MainForms/Applications/Console.vb index 61f6920..421e3f2 100644 --- a/ShiftOS-TheRevival/MainForms/Applications/Console.vb +++ b/ShiftOS-TheRevival/MainForms/Applications/Console.vb @@ -24,7 +24,6 @@ Public Class Console .WorkerSupportsCancellation = True End With Console_Full() - Cursor.Hide() InitializeTerminal() End Sub @@ -237,4 +236,8 @@ Public Class Console Private Sub TextBox1_Click(sender As Object, e As MouseEventArgs) Handles TextBox1.MouseDoubleClick, TextBox1.Click End Sub + + Private Sub DuWMHandle_Tick(sender As Object, e As EventArgs) Handles DuWMHandle.Tick + + End Sub End Class
\ No newline at end of file diff --git a/ShiftOS-TheRevival/MainForms/Applications/Shifter.Designer.vb b/ShiftOS-TheRevival/MainForms/Applications/Shifter.Designer.vb index 38ead47..873752c 100644 --- a/ShiftOS-TheRevival/MainForms/Applications/Shifter.Designer.vb +++ b/ShiftOS-TheRevival/MainForms/Applications/Shifter.Designer.vb @@ -23,33 +23,61 @@ Partial Class Shifter <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.Label1 = New System.Windows.Forms.Label() + Me.Button1 = New System.Windows.Forms.Button() + Me.Label2 = New System.Windows.Forms.Label() Me.SuspendLayout() ' 'Label1 ' Me.Label1.AutoSize = True + Me.Label1.Font = New System.Drawing.Font("Segoe UI", 24.0!, System.Drawing.FontStyle.Bold) Me.Label1.Location = New System.Drawing.Point(12, 9) Me.Label1.Name = "Label1" - Me.Label1.Size = New System.Drawing.Size(40, 13) + Me.Label1.Size = New System.Drawing.Size(131, 45) Me.Label1.TabIndex = 0 Me.Label1.Text = "Shifter!" ' + 'Button1 + ' + Me.Button1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) + Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat + Me.Button1.Location = New System.Drawing.Point(713, 415) + Me.Button1.Name = "Button1" + Me.Button1.Size = New System.Drawing.Size(75, 23) + Me.Button1.TabIndex = 1 + Me.Button1.Text = "Close" + Me.Button1.UseVisualStyleBackColor = True + ' + 'Label2 + ' + Me.Label2.AutoSize = True + Me.Label2.Location = New System.Drawing.Point(17, 64) + Me.Label2.Name = "Label2" + Me.Label2.Size = New System.Drawing.Size(69, 13) + Me.Label2.TabIndex = 2 + Me.Label2.Text = "no desktop :(" + ' 'Shifter ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.BackColor = System.Drawing.Color.White Me.ClientSize = New System.Drawing.Size(800, 450) + Me.Controls.Add(Me.Label2) + Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.Label1) Me.ForeColor = System.Drawing.Color.Black Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Me.Name = "Shifter" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen Me.Text = "Shifter" + Me.TopMost = True Me.ResumeLayout(False) Me.PerformLayout() End Sub Friend WithEvents Label1 As Label + Friend WithEvents Button1 As Button + Friend WithEvents Label2 As Label End Class diff --git a/ShiftOS-TheRevival/MainForms/Applications/Shifter.vb b/ShiftOS-TheRevival/MainForms/Applications/Shifter.vb index cea6fe3..4613ee1 100644 --- a/ShiftOS-TheRevival/MainForms/Applications/Shifter.vb +++ b/ShiftOS-TheRevival/MainForms/Applications/Shifter.vb @@ -5,9 +5,13 @@ End Sub - Private Sub DuWM_Tick(sender As Object, e As EventArgs) + Private Sub DuWM_Tick(sender As Object, e As EventArgs) If Strings.ProcessID(DuWM_PID) = 0 Then Close() End If End Sub + + Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click + Close() + End Sub End Class
\ No newline at end of file |
