$Form1 = GUICreate("集中制票平台", 300, 200, -1, -1)
$usrnLabel0 = GUICtrlCreateLabel("用户名",72, 8, 36, 25)
$Input1 = GUICtrlCreateInput("", 72, 32, 145, 21)
GUICtrlSendMsg(-1, $EM_SETCUEBANNER, True, "请输入")
GUICtrlSetState($Input1, $GUI_FOCUS)
$pswLabel0 = GUICtrlCreateLabel("密码", 72, 64, 36, 25)
$Input2 = GUICtrlCreateInput("", 72, 88, 145, 21,$ES_PASSWORD)
GUICtrlSendMsg(-1, $EM_SETCUEBANNER, True, "请输入")
$Checkbox1 = GUICtrlCreateCheckbox("显示", 224, 88, 49, 17)
GUICtrlSetOnEvent(-1,"Pswdsp")
$ReButton0 = GUICtrlCreateButton("注册", 32, 136, 73, 33)
GUICtrlSetOnEvent(-1,"Register")
$LgButton0 = GUICtrlCreateButton("登录", 200, 136, 73, 33)
GUICtrlSetOnEvent(-1,"Login")
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
Func Pswdsp()
If BitAnd(GUICtrlRead($Checkbox1),$GUI_CHECKED) Then
GUICtrlSetStyle($Input2,"")
Else
GUICtrlSetStyle($Input2,0x0020)
EndIf
EndFunc