waltzie Posted January 19, 2009 Posted January 19, 2009 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
BugFix Posted January 19, 2009 Posted January 19, 2009 Try this: set state for background-picture of $GUI_DISABLE Best Regards BugFix
waltzie Posted January 19, 2009 Author Posted January 19, 2009 Try this: set state for background-picture of $GUI_DISABLEYes it works Thanks ....How can i add a background picture to treeview object or make it semi transparent?
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