Probleme mit GUI hintergründe

  • Hi ich will gerne ein bild in einem TabSheet reinbekommen ,aber es verschwindet immer ?( selbst wenn ich in einem normalen Gui ein hintergrund benutze kann ich nicht mehr buttons usw benutzen :huh:

  • Bei einer normalen gui musst du das hintergrundbild als letzten (untersten) control erstellen und dahinter kommt dann noch : $WS_DISABLED

    dann geht es ^^

    Beispiele ^^

    So nicht :

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ListBoxConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #NoTrayIcon

    [/autoit] [autoit][/autoit] [autoit]

    $search = FileFindFirstFile("C:\BS\XP-SideBar\" & "*.*")

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $file = FileFindNextFile($search)
    If @error Then ExitLoop
    $F1 = FileOpen("test.txt",1)
    FileWrite($F1,$file)
    FileClose($F1)
    $file1 = FileRead("test.txt")
    $file2 = StringRegExp($file1, '*.*')
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $Form1 = GUICreate("Form1", 398, 342, 726, 184)
    GUISetBkColor(0x000000)
    $Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Administrator\Desktop\PS CS3 Portable\Nützliches\Vorlagen\BG.jpg", 0, 0, 396, 340, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $List1 = GUICtrlCreateList("", 8, 8, 160, 240)
    GUICtrlSetData(-1, $file2)
    $List2 = GUICtrlCreateList("", 229, 8, 160, 240)
    GUICtrlSetData(-1, "test|test2|test3|test4")
    $Button1 = GUICtrlCreateButton("+", 184, 104, 30, 25, 0)
    $Button2 = GUICtrlCreateButton("-", 184, 144, 30, 25, 0)
    $Input1 = GUICtrlCreateInput("Preis Einkauf in €", 229, 250, 160, 25)
    $Button3 = GUICtrlCreateButton("Neuer Artikel", 8, 250, 160, 25, 0)
    $Button4 = GUICtrlCreateButton("Druck Einkauf", 148, 304, 100, 25, 0)
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]

    so schon ^^ :

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ListBoxConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #NoTrayIcon

    [/autoit] [autoit][/autoit] [autoit]

    $search = FileFindFirstFile("C:\BS\XP-SideBar\" & "*.*")

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $file = FileFindNextFile($search)
    If @error Then ExitLoop
    $F1 = FileOpen("test.txt",1)
    FileWrite($F1,$file)
    FileClose($F1)
    $file1 = FileRead("test.txt")
    $file2 = StringRegExp($file1, '*.*')
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $Form1 = GUICreate("Form1", 398, 342, 726, 184)
    GUISetBkColor(0x000000)
    $List1 = GUICtrlCreateList("", 8, 8, 160, 240)
    GUICtrlSetData(-1, $file2)
    $List2 = GUICtrlCreateList("", 229, 8, 160, 240)
    GUICtrlSetData(-1, "test|test2|test3|test4")
    $Button1 = GUICtrlCreateButton("+", 184, 104, 30, 25, 0)
    $Button2 = GUICtrlCreateButton("-", 184, 144, 30, 25, 0)
    $Input1 = GUICtrlCreateInput("Preis Einkauf in €", 229, 250, 160, 25)
    $Button3 = GUICtrlCreateButton("Neuer Artikel", 8, 250, 160, 25, 0)
    $Button4 = GUICtrlCreateButton("Druck Einkauf", 148, 304, 100, 25, 0)
    $Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Administrator\Desktop\PS CS3 Portable\Nützliches\Vorlagen\BG.jpg", 0, 0, 396, 340, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$WS_DISABLED))
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]

    MFG Eistee