Gut, ich lasse es nun sein mit der doofen Toolbar
Kann ich theoretisch ein Bild zum anklicken machen. Also ein Bild als Button ?
Würde das gerne mit Koda erstellen.
mfg Tim
Gut, ich lasse es nun sein mit der doofen Toolbar
Kann ich theoretisch ein Bild zum anklicken machen. Also ein Bild als Button ?
Würde das gerne mit Koda erstellen.
mfg Tim
Immer nur Kode, geht auch ohne -.-
[autoit]GUICtrlSetImage
[/autoit]Klar
Einfach ganz normal mit GUIGetMsg
Oder mit _GUICtrlButton_SetImage
Edit: zu späääät
jo geht:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Group1 = GUICtrlCreateGroup("Bild ist hier drin!", 128, 48, 473, 321)
$Pic1 = GUICtrlCreatePic("", 136, 64, 460, 300, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlCreateGroup("", -99, -99, 1, 1);irrelevant, nur damit man weiß wo das bild ist!
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Pic1
;deine func
MsgBox(0,"","")
EndSwitch
WEnd
Edit\\ zu spät, dafür mit beispiel^^
So :
[autoit]#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 254, 162, 192, 124)
$Pic1 = GUICtrlCreatePic(@scriptdir & "\Image\bild.jpg", 0, 0, 252, 148, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Pic1
MsgBox(0,"","")
EndSwitch
WEnd
EDIT: Auch zu spät
Ok danke euch.
Ich habe
[autoit]$Button2 = GUICtrlCreateButton("Button2", 304, 16, 57, 49, $BS_BITMAP)
_GUICtrlButton_SetImage($Button2, "grün.jpg")
Und er sagt mir
C:\Users\User\Desktop\EasyShowCreator\test.au3 (2) : ==> Unknown function name.:
_GUICtrlButton_SetImage($Button2, "grün.jpg")
^ ERROR
???
mfg Tim
#Include <GuiButton.au3>
Ahhh, perfekt!
Mein Fehler
DANKE Tim
Präfix auf gelöst setzen! Danke!