shiftos-next/shiftos_next/BWM and CMD Apps/basicwm_infobox.vb
TheUltimateHacker 424931951b 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...
2015-05-28 21:42:26 -04:00

19 lines
No EOL
582 B
VB.net

Public Class basicwm_infobox
Public userinput As String
Public Sub showinfo(title As String, message As String, Optional showtextbox As Boolean = False)
lbtitle.Text = title
lbmessage.Text = message
btnok.Text = "> OK <"
txtuserinput.Visible = showtextbox
Me.StartPosition = FormStartPosition.CenterScreen
Me.TopMost = True
Me.ShowDialog()
End Sub
Private Sub btnok_Click(sender As Object, e As EventArgs) Handles btnok.Click
userinput = txtuserinput.Text
Me.Close()
End Sub
End Class