Sign in to follow this  
Followers 0
waltzie

Adding Background to a window & refresh other GUI objects...

3 posts in this topic

Hi,

I'm trying to make a GUI with a standard windows interface WITH BACKGROUND, but adding more GUI objects, I can't accss to them & can't visualize them correctly if minimize & maximize.

I need to add background to treeview Too.....

Somenone can help me?

Thanks

(here is the example code)

If i add a treeview the visualizzation is bugged!

I can't access to Treeview object, minimizing & maximizing the tree object disappear

here is the example

#Include <GUIConstants.au3>

#include <GuiConstantsEx.au3>

#Include <GuiTreeView.au3>

#include <TreeViewConstants.au3>

#include <WindowsConstants.au3>

#include <StaticConstants.au3>

; Create GUI

$gui = GUICreate("Background", 400, 400,-1,-1,$WS_TILEDWINDOW)

$path_background = @ScriptDir & "\myimage.jpg"

$background = GUICtrlCreatePic($path_background, 0, 0, 0, 0)

GUICtrlSetResizing($background,$GUI_DOCKSIZE+$GUI_DOCKHCENTER+$GUI_DOCKVCENTER); Center the image into window

$maintree = GUICtrlCreateTreeView(10, 10, 120, 150)

$aboutitem = GUICtrlCreateTreeViewItem("About", $maintree)

$miscitem = GUICtrlCreateTreeViewItem("Misc", $aboutitem)

GUISetState(@SW_SHOW)

; GUI MESSAGE LOOP

While GuiGetMsg() <> $GUI_EVENT_CLOSE

; wait till gui is closed

WEnd

Share this post


Link to post
Share on other sites



Try this: set state for background-picture of $GUI_DISABLE


Best Regards BugFix  

Share this post


Link to post
Share on other sites

Try this: set state for background-picture of $GUI_DISABLE

Yes it works :)

Thanks ....

How can i add a background picture to treeview object or make it semi transparent?

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