Jump to content

tab/group image prob please help.


hot202
 Share

Recommended Posts

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$main_GUI = GUICreate("Form1", 570, 292, 193, 125, BitOr($GUI_SS_DEFAULT_GUI,$WS_CLIPSIBLINGS))
$win_btn_1 = GUICtrlCreateButton("Window 1", 24, 40, 75, 25, 0)
$win_btn_2 = GUICtrlCreateButton("Window 2", 24, 80, 75, 25, 0)
GUISetState()

$child1 = GUICreate("", 600, 300, 0, 0,BitOr($WS_CHILD,$WS_TABSTOP),-1,$main_GUI)
$Group1_1 = GUICtrlCreateGroup("", 168, 16, 385, 257)
$Group2_1 = GUICtrlCreateGroup("Group 1", 240, 56, 169, 97)
$Label1 = GUICtrlCreateLabel("I am in window 1", 256, 88, 104, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState()

$child2 = GUICreate("", 600, 300, 0, 0,BitOr($WS_CHILD,$WS_TABSTOP),-1,$main_GUI)
$Group2_1 = GUICtrlCreateGroup("", 168, 16, 385, 257)
$Group2_2 = GUICtrlCreateGroup("Group 2", 240, 56, 169, 97)
$Label2 = GUICtrlCreateLabel("I am in window 2", 256, 88, 104, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)

GUISwitch($main_GUI)

#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $win_btn_1
            GUISetState(@SW_SHOW, $child1)
            GUISetState(@SW_HIDE, $child2)
        Case $win_btn_2
            GUISetState(@SW_HIDE, $child1)
            GUISetState(@SW_SHOW, $child2)
    EndSwitch
WEnd

when i try to use that i have probs i put a background pic and then i have pic in the group1 but the pic in group 1 dont come on top of the background pic.

Link to comment
Share on other sites

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$main_GUI = GUICreate("Form1", 290, 194, 192, 107, BitOr($GUI_SS_DEFAULT_GUI,$WS_CLIPSIBLINGS))
$Background = GUICtrlCreatePic("C:\Documents and Settings\Nathan\Desktop\complete\BG_Main.jpg", 0, 0, 289, 193)
$Pic2 = GUICtrlCreatePic("C:\Documents and Settings\Nathan\Desktop\complete\buttons\Main1.bmp", 14, 42, 65, 12)
$Pic3 = GUICtrlCreatePic("C:\Documents and Settings\Nathan\Desktop\complete\buttons\Options.bmp", 80, 42, 65, 12)
GUISetState(@SW_SHOW)


$child1 = GUICreate("", 290, 194, 0, 0,BitOr($WS_CHILD,$WS_TABSTOP),-1,$main_GUI)
$Group1 = GUICtrlCreateGroup("Group1", 16, 48, 257, 97)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Nathan\Desktop\4.0 BETA\Pictures New\back.jpg", 16, 48, 257, 97)
$Label1 = GUICtrlCreateLabel("I am in window 1", 256, 88, 104, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState()

the pic isnt going ontop of the main gui background how can i fix that?

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...