Sign in to follow this  
Followers 0
BigDaddyO

GuictrlcreatePic over ListView

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

OK,

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


Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0