BigDaddyO Posted August 31, 2009 Share Posted August 31, 2009 I'm trying to display an image over the top of a ListView control but it won't display, even if I use the $GUI_ONTOP with the Pic. anybody have an idea? Here is some very simple script I'm using for testing purposes. #include <GUIConstantsEx.au3> $hGui = GUICreate("ListView Pic test", 400, 600) $hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590) GUICtrlCreatePic(".\Web\Image_Small.jpg", 60, 300, 0, 0) GUICtrlSetState(-1, $GUI_ONTOP) GUISetState() While 1 sleep(100) WEnd Link to comment Share on other sites More sharing options...
reb Posted August 31, 2009 Share Posted August 31, 2009 I'm trying to display an image over the top of a ListView control but it won't display, even if I use the $GUI_ONTOP with the Pic. anybody have an idea? Here is some very simple script I'm using for testing purposes. #include <GUIConstantsEx.au3> $hGui = GUICreate("ListView Pic test", 400, 600) $hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590) GUICtrlCreatePic(".\Web\Image_Small.jpg", 60, 300, 0, 0) GUICtrlSetState(-1, $GUI_ONTOP) GUISetState() While 1 sleep(100) WEnd Your sample works for me if I insert a jpg pic from my pictures. #include <GUIConstantsEx.au3> $hGui = GUICreate("ListView Pic test", 400, 600) $hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590) GUICtrlCreatePic("C:\Users\Dick\Pictures\Amand's Horse\IMG_0681.JPG", 100, 300, 100, 100) GUICtrlSetState(-1, $GUI_ONTOP) GUISetState() While 1 sleep(100) WEnd REB MEASURE TWICE - CUT ONCE Link to comment Share on other sites More sharing options...
BigDaddyO Posted August 31, 2009 Author Share Posted August 31, 2009 Your sample works for me if I insert a jpg pic from my pictures.#include <GUIConstantsEx.au3>$hGui = GUICreate("ListView Pic test", 400, 600)$hLV = GUICtrlCreateListView("Test|One", 100, 10, 300, 590)GUICtrlCreatePic("C:\Users\Dick\Pictures\Amand's Horse\IMG_0681.JPG", 100, 300, 100, 100)GUICtrlSetState(-1, $GUI_ONTOP)GUISetState()While 1 sleep(100)WEndREBOK,well, i'm using windows 7 rc and it doesn't work. I just compiled it and sent it over to someone with XP and it works fine. Strange...Thanks,Mike Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now