Hallo,
bei mir wird das Hintergrundbild des Listview mit nach unten gescrollt. Siehe Pics. (Nur zum Testen abgespalten von diesem thread )
Bei nuts (Win7) wird es nicht mitgescrollt.
Bitte mal den Code testen und Ergebnis posten.
Spoiler anzeigen
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <WindowsConstants.au3>
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
Opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit]$Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work
[/autoit] [autoit][/autoit] [autoit]Example_UDF_Created() ;use UDF built listview
[/autoit] [autoit][/autoit] [autoit]Func Example_UDF_Created()
Local $GUI, $hImage, $aImage, $hListView
Local $exStyles = BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_DOUBLEBUFFER)
$GUI = GUICreate("(UDF Created) ListView Set Background Image", 600, 550)
[/autoit] [autoit][/autoit] [autoit];=========================================================================================================
$hListView = _GUICtrlListView_Create($GUI, "", 2, 2, 596, 500, $LVS_NOCOLUMNHEADER, -1, True) ; Last option Calls CoInitializeEx
;=========================================================================================================
_GUICtrlListView_SetExtendedListViewStyle($hListView, $exStyles)
; Add columns
for $k = 0 to 4
_GUICtrlListView_InsertColumn($hListView, $k, "", 70)
next
; Add items
for $i=0 to 555
for $k = 0 to 4
_GUICtrlListView_AddItem($hListView, $i, "item" & @CRLF & $i)
_GUICtrlListView_AddSubItem($hListView, $i, "item" & @CRLF & $i, $k)
next
next
;~ _GUICtrlListView_SetBkColor ($hListView, $CLR_NONE)
;~ _GUICtrlListView_SetTextColor ($hListView, $CLR_NONE)
;~ _GUICtrlListView_SetTextBkColor ($hListView, $CLR_NONE)
; Get the Image
Local $sURL = "http://www.autoitscript.com/autoit3/files/graphics/autoit9_wall_grey_800x600.jpg"
Local $sFilePath = @ScriptDir & "\AutoIt.jpg"
InetGet($sURL, $sFilePath)
; Set the Background Image
_GUICtrlListView_SetBkImage($hListView, $sFilePath)
;~_GUICtrlListView_SetBkImage($hListView, $sFilePath, 1)
;~$aImage = _GUICtrlListView_GetBkImage($hListView)
GUISetState()
[/autoit] [autoit][/autoit] [autoit];~MsgBox(4160, "Information", "Background Image: " & $aImage[1])
[/autoit] [autoit][/autoit] [autoit]; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
;=========================================================================================================
DllCall('ole32.dll', 'long', 'CoUinitialize') ; Must call for each CoInitializeEx call made
;=========================================================================================================
GUIDelete()
FileDelete($sFilePath)
EndFunc ;==>Example_UDF_Created
Habe versuchsweise meinen Rechner mehr oder weniger in den Ausgangszustand zurückversetzt + neueste Autoitversion frisch installiert. Leider ohne Erfolg.
Betriebssystem ist WinXP 32bit quasi im Rohzustand. Installation mit nlite verschlankt, sonst eigentlich nichts besonderes.
Danke im vorraus.
Pic1 $iStyle 0
Pic2 $iStyle 1 (Bild wird zusätzlich vervielfältigt)