Also diese neuen ListView-Funktionen sind ganz schön seltsam.
So steht in der Hilfe unter _GUICtrlListView_SetBkImage
_GUICtrlListView_SetBkImage
--------------------------------------------------------------------------------
Sets the background image in the control
#Include <GuiListView.au3>
_GUICtrlListView_SetBkImage($hWnd[, $sURL = ""[, $iStyle = 0[, $iXOffset = 0[, $iYOffset = 0]]]])
Parameters
$hWnd Handle to the control
$sURL URL of the background image. If blank, the control has no background
$iStyle Determines the background image style:
0 - Normal
1 - Tiled
$iXOffset Percentage of the control's client area that the image should be offset horizontally. Only
valid when 0 is used in $iStyle.
$iYOffset Percentage of the control's client area that the image should be offset vertically. Only valid
when 0 is used in $iStyle.
Alles anzeigen
Als Bildpfad eine URL ? Nachdem ich mir das Beispiel angeschaut habe, welche ich nebenbei schlechter finde als die alten weil da viele andere Funktionen mit drin sind >_>, habe ich aber erkannt das man auch "normale" Pfade angeben kann.
Local $sFilePath = @ScriptDir & "\AutoIt.jpg"
InetGet($sURL, $sFilePath)
; Set the Background Image
_GUICtrlListView_SetBkImage ($hListView, $sFilePath)
Also will ich das mal testen mit folgendem Script
Mein Scriptchen
#include <GuiConstants.au3>
#include <GuiListView.au3>
GUICreate("",300,200)
$listview = GUICtrlCreateListView("Spalte1|Spalte2|Spalte3|",0,0,200,100)
_GUICtrlListView_SetBkImage($listview,@ScriptDir & "\AutoIt.jpg")
GUISetState()
If FileExists(@ScriptDir & "\AutoIt.jpg") Then MsgBox(0,"","AutoIt.jpg vorhanden")
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
Die MsgBox, das das Bild gefunden wurde kommt zwar, aber der Hintergrund ist immernoch weiß obwohl er doch das dolle AutoIt-Bildchen enthalten sollte.