ein dumme frage^^

01/17/2011 21:21 KingZuck#1
hi,


wie kann ich bei autoit ein bild ohne Hintergrund einbinden bzw als Button nutzen den wenn ich .png benutze macht das script alles was er will^^
bei .jpg wird es dann ja weiß dargestellt...


pls helfen
01/17/2011 21:25 Jonas_93#2
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 448, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 48, 24, 75, 25, BitOR($BS_BITMAP,$WS_GROUP))
GUICtrlSetImage(-1, "C:\Dokumente und Einstellungen\XXX\Desktop\Bilder\falls_1024x768.jpg.bmp", -1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd
Oder ich hab deine Frage falsch verstanden.
01/17/2011 21:32 KingZuck#3
Quote:
Originally Posted by Jonas_93 View Post
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 448, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 48, 24, 75, 25, BitOR($BS_BITMAP,$WS_GROUP))
GUICtrlSetImage(-1, "C:\Dokumente und Einstellungen\XXX\Desktop\Bilder\falls_1024x768.jpg.bmp", -1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd
Oder ich hab deine Frage falsch verstanden.
oh könnte sein habe immer nur ein bild gesetzt und dann
case $pic1
funktion^^

aber ob das stimmt:
Quote:
.jpg.bmp

€:nichts gebracht....
01/17/2011 21:43 TrickGamer#4
GUICtrlCreatepic geht doch wenn man eine Variable sätzt und zu eine Funktion zuortnet...
damit ein button "animiert" ist so das wenn man z.B mit maus drauf ist andersaussieht und/oder draufklickt: Google mal nach "Autoit Gdi+ Button" oder "Autoit Gdiplus button"
lange her als ich das benutzt habe aber es hat mir mal geholfen...
01/17/2011 22:00 KingZuck#5
ok thanks werde mal gucken werde das ergebnis posten