#include-once
#include "_EigeneFunktionen.au3"
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

Opt("MustDeclareVars", 1)
Opt("GUIOnEventMode", 1)

Global $idButton, $idGUI_Msg, $idInp_Passwort, $idBtn_PWAnzeigen

GUICreate("Include-Datei suchen:", 830, 261, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU))
GUISetBkColor(0x3680FF)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEButton")

$idInp_Passwort = GUICtrlCreateInput("", 226, 31, 380, 36, $ES_PASSWORD)
GUICtrlSetFont(-1, 16, 800, 0, "Times New Roman")
;GUICtrlSetData(-1, "Das ist aber schön.")

$idBtn_PWAnzeigen = GUICtrlCreateButton("Passwort anzeigen.", 65, 130, 220, 40)
GUICtrlSetFont(-1, 14, 400, 0, "Times New Roman")
GUICtrlSetBkColor(-1, 0x2FF130)
GUICtrlSetOnEvent(-1, "PWAnzeigen")

GUISetState(@SW_SHOW)

While 1
    Sleep(100)
WEnd


Func PWAnzeigen()
    GUICtrlSetStyle($idInp_Passwort, -1)
	GUICtrlSetData($idInp_Passwort, GUICtrlRead($idInp_Passwort))
EndFunc

Func CLOSEButton()
    MsgBox($MB_OK, "GUI Event", 'Passwort: "' & GUICtrlRead($idInp_Passwort) & '"' & @CRLF & @CRLF & "Das Programm wird jetzt beendet.")
	GUIDelete()
    Exit
EndFunc



