Jump to content
Sign in to follow this  
erebus

Treeview transparency

Recommended Posts

Hello all,

I want to create a GUI with a background picture and a transparent treeview control on the front. Is it possible?

So far:

#include <GUIConstants.au3>

$title = "blah"

$GUIform = GUICreate($title, 560, 400)
$GUIback = GUICtrlCreatePic(@WindowsDir & "\Web\Wallpaper\Windows XP.jpg", 0, 0, 560, 400)
GUICtrlSetState(-1, $GUI_DISABLE)
$treeview = GUICtrlCreateTreeView(20, 20, 200, 350, "", $WS_EX_TRANSPARENT)
$generalitem    = GUICtrlCreateTreeViewitem("Title 1", $treeview)
$displayitem    = GUICtrlCreateTreeViewitem("Title 2", $treeview)
$aboutitem      = GUICtrlCreateTreeViewitem("About", $generalitem)
$otheritem      = GUICtrlCreateTreeViewitem("Other", $displayitem)
GUISetState()

Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

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  

×
×
  • Create New...