Er soll 5 Sekunden angezeigt werden. Wie mache ich sowas.
Danke für alle Beiträge!

Code: Alles auswählen
Enumeration
#Window_Fake
#Window_Splash
#Window_Main
EndEnumeration
Enumeration
#Image_Splash
#Button_Quit
EndEnumeration
Procedure Open_Window_Splash()
OpenWindow(#Window_Fake, 0, 0, 0, 0, #PB_Window_Invisible, "")
If OpenWindow(#Window_Splash, 0, 0, 300, 150, #PB_Window_BorderLess | #PB_Window_ScreenCentered, "", WindowID(#Window_Fake))
If CreateGadgetList(WindowID(#Window_Splash))
;ImageGadget() ;<--- anpassen
EndIf
Else
MessageRequester("", "Error", #MB_ICONERROR)
End
EndIf
EndProcedure
Procedure Open_Window_Main()
If OpenWindow(#Window_Main, 0, 0, 400, 300, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered, "Test")
If CreateGadgetList(WindowID(#Window_Main))
ButtonGadget(#Button_Quit, 20, 20, 100, 25, "Quit")
EndIf
Else
MessageRequester("", "Error", #MB_ICONERROR)
End
EndIf
EndProcedure
Open_Window_Splash()
;While irgendwas <--- anpassen und das untere Delay(3000) löschen
;Delay(1000) ;<--- 1 sekunde tut keinem weh, kannst aber auch niedriger machen, wenn du unbedingt willst
;Wend
Delay(3000) ;<--- hab ich jetzt nur so als beispiel reingemacht, kannst dann löschen
CloseWindow(#Window_Splash)
Open_Window_Main()
Repeat
Event.l = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
End
EndSelect
Until Event = #PB_Event_CloseWindow
End