Modify

Opened 17 years ago

Closed 16 years ago

#1160 closed Bug (No Bug)

GuictrlcreatePic not displaying over ListView in Win7

Reported by: anonymous Owned by: Jon
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: Blocking
Keywords: Cc:

Description

Using Windows 7 RC the image will not display over a listview control. Works fine when running on XP. I don't have Vista to test with.

;ListView with Pic overview test
#include <GUIConstantsEx.au3>

$hGui = GUICreate("ListView Pic test", 400, 600)
$hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590)
GUICtrlCreatePic(".\Web\Img_Small.jpg", 60, 300, 0, 0)
GUICtrlSetState(-1, $GUI_ONTOP)
GUISetState()

While 1
	$msg = GUIGetMsg()
	If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

Attachments (0)

Change History (7)

comment:1 by J-Paul Mesnage, 16 years ago

I don't have access to Windows 7. It would be better that you repproduce under the RTM release.
I can just say that it is working under Vista

comment:2 by danielkza, 16 years ago

Just confirming it's not an issue in OP's machine: I can see the same behavior in Win7 RC too. It works fine on my Vista laptop, though.

comment:3 by J-Paul Mesnage, 16 years ago

Owner: set to Jos
Status: newassigned

comment:4 by Valik, 16 years ago

Severity: NoneBlocking

comment:5 by Jon, 16 years ago

Works on windows 7 when run without visual styles. Almost certainly a Win7 bug/change.

comment:6 by J-Paul Mesnage, 16 years ago

Owner: changed from Jos to Jon

comment:7 by Valik, 16 years ago

Resolution: No Bug
Status: assignedclosed

This is not a bug, just incomplete code. The ListView requires $WS_CLIPSIBLINGS so the image can be drawn over it. This example should work on all versions of Windows:

;ListView with Pic overview test
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGui = GUICreate("ListView Pic test", 400, 600)
$hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590, $WS_CLIPSIBLINGS)
GUICtrlCreatePic(".\Web\Img_Small.jpg", 60, 300, 0, 0)
GUICtrlSetState(-1, $GUI_ONTOP)
GUISetState()

While 1
	$msg = GUIGetMsg()
	If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.