Jump to content

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


waltzie
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...