Habe hier ein kleines GUI geschrieben.
Leider funktioniert es nicht.
Ich kann nichts anklicken und nichts makieren.
Frage ist nun: Warum?
Vll. kann mir ja ein kundiger User helfen.
MfG
Alex
C
#Include <GDIPlus.au3>
#Include <File.au3>
#include <GuiConstants.au3>
#include<ButtonConstants.au3>
#include<StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#Include <WinAPI.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\localhost\Desktop\Form1.kxf
$Form1 = GUICreate("Easy Backup V0.1 ~ By L0c4lh0sT ", 686, 438, 189, 112)
$Label1 = GUICtrlCreateLabel("Pre-ALPHA Version of my Backup Solution. For testing purposes only! Do not sell without my permission!", 0, 0, 728, 51)
GUICtrlSetFont(-1, 9, 800, 0, "Arial")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUICtrlSetState(-1, $GUI_DISABLE)
$Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\All Users\Dokumente\Eigene Bilder\Beispielbilder\Blaue Berge.jpg", -8, 32, 681, 393, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Input1 = GUICtrlCreateInput("Directory 2 Copy", 16, 64, 185, 29)
$Input2 = GUICtrlCreateInput("Where 2 Store the Backup?", 16, 112, 185, 29)
$Backup = GUICtrlCreateButton("Backup", 32, 152, 145, 33, 0)
$OpenFolder = GUICtrlCreateButton("OpenFolder", 32, 200, 145, 33, 0)
$Exit = GUICtrlCreateButton("Exit", 32, 248, 145, 33, 0)
$Progress1 = GUICtrlCreateProgress(56, 352, 561, 33)
$Label2 = GUICtrlCreateLabel("Status", 56, 392, 562, 17)
GUICtrlSetBkColor(-1, 0xFFFFE1)
$Button1 = GUICtrlCreateButton("(Not allowed)", 200, 64, 29, 29, $BS_BITMAP)
GUICtrlSetImage(-1, "C:\Dokumente und Einstellungen\localhost\Desktop\arrow.bmp", 0)
$Button2 = GUICtrlCreateButton("(Not allowed)", 200, 112, 29, 29, $BS_BITMAP)
GUICtrlSetImage(-1, "C:\Dokumente und Einstellungen\localhost\Desktop\arrow.bmp", 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$Msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $Backup
MsgBox(0,$Backup, "Du hast Backup gedrückt!")
Case $msg = $Button1
$change_dir = FileSelectFolder("Where's the folder?", "", 1+2+4, "c\:")
ExitLoop
EndSelect
WEnd
Alles anzeigen