Hi!
Ich habe versucht hinter den Textfeldern und Buttons ein Hintergrundbild einzufügen welches sich von links nach rechts bewegen sollte.
Es sollte dabei HINTER den Buttons und Textfeldern bleiben:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GDIPlus.au3>
#Include <WinAPI.au3>
Global $Fensterhoehe = 650
Global $Fensterbreite = 900
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\ISI\Eigene Dateien\AutoIT\ISMediaportal\main.kxf
$hwnd = GUICreate("Moving Background", $Fensterbreite, $Fensterhoehe, 226, 158)
$backgroundimage = GUICtrlCreatePic("C:\windows\Angler.bmp", 0, 0, 300, $Fensterhoehe,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$WS_EX_LAYERED))
guictrlsetstate(-1,$GUI_DISABLE)
$Button1 = GUICtrlCreateButton("Button1", 32, 232, 121, 33, 0)
$Button2 = GUICtrlCreateButton("Button1", 113, 325, 121, 33, 0)
$Button3 = GUICtrlCreateButton("Button1", 377, 185, 121, 33, 0)
$Label1 = GUICtrlCreateLabel("Text..text..text", 48, 104, 71, 17)
$Label2 = GUICtrlCreateLabel("Text..text..text", 58, 427, 119, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Text..text..text", 235, 263, 119, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Text..text..text", 433, 441, 119, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$newX = 0
do
$newX = $newX+5
;guictrlsetpos($backgroundimage,$newX,0,800,$Fensterhoehe)
controlmove($hwnd,"",$backgroundimage,$newX,0)
sleep(100)
until GUIGetMsg() = $GUI_EVENT_CLOSE
Allerding "reißt" das Hintergrundbild (bei controlmove) die anderen GUI-Elemente irgentwie mit....
Und wenn ich es mit guictrlsetpos versuche, flimmert das Bild extrem!
Weiß einer von euch da ne Lösung?!?!?
thx im Vorraus!