- Offizieller Beitrag
So?
Spoiler anzeigen
[autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Picture Viewer", 625, 443, -1, -1, -1, $WS_EX_TOOLWINDOW)
$Button1 = GUICtrlCreateButton("Öffnen...", 0, 416, 73, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
Global $p
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Pic1 = FileOpenDialog("Wählen Sie ein Bild.", @DesktopDir & "\", "(*.jpg;*.png)")
GUICtrlDelete($p)
$p = GUICtrlCreatePic($Pic1, 0, 0, 617, 417, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
EndSwitch
WEnd