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 , 16 years ago
comment:2 by , 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 , 16 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:4 by , 16 years ago
| Severity: | None → Blocking |
|---|
comment:5 by , 16 years ago
Works on windows 7 when run without visual styles. Almost certainly a Win7 bug/change.
comment:6 by , 16 years ago
| Owner: | changed from to |
|---|
comment:7 by , 16 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | assigned → closed |
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
Note:
See TracTickets
for help on using tickets.

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