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
Probleme mit GUI hintergründe
-
- [ offen ]
-
FunH@cker -
31. Juli 2009 um 00:37 -
Geschlossen -
Erledigt
-
-
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>
[/autoit] [autoit][/autoit] [autoit]
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#NoTrayIcon$search = FileFindFirstFile("C:\BS\XP-SideBar\" & "*.*")
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$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$Form1 = GUICreate("Form1", 398, 342, 726, 184)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
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)While 1
[/autoit] [autoit][/autoit] [autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitEndSwitch
[/autoit]
WEndso schon :
Spoiler anzeigen
[autoit]#include <ButtonConstants.au3>
[/autoit] [autoit][/autoit] [autoit]
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#NoTrayIcon$search = FileFindFirstFile("C:\BS\XP-SideBar\" & "*.*")
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$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$Form1 = GUICreate("Form1", 398, 342, 726, 184)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
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)While 1
[/autoit] [autoit][/autoit] [autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitEndSwitch
[/autoit]
WEndMFG Eistee