Code: Alles auswählen
InitSprite()
If OpenWindow(0, 0, 0, 1024,768, "Explorer1")
If OpenWindowedScreen(WindowID(0),0,0,1024,768, 1, 0, 0)
EndIf
EndIf
Repeat
Delay(1)
forever
Danke für jeden Tipp im vorraus
PB v4.2
Gruß ZIM
Code: Alles auswählen
InitSprite()
If OpenWindow(0, 0, 0, 1024,768, "Explorer1")
If OpenWindowedScreen(WindowID(0),0,0,1024,768, 1, 0, 0)
EndIf
EndIf
Repeat
Delay(1)
forever
Code: Alles auswählen
While WindowEvent() : Wend
Code: Alles auswählen
If InitSprite()
If OpenWindow(0, 0, 0, 1024,768, "Explorer1")
If OpenWindowedScreen(WindowID(0),0,0,1024,768, 1, 0, 0)
;put the stuff IN the if-clause.
;Otherwise you ignore it, if the window/screen initialisation fails
Repeat
Repeat
EventID = WindowEvent()
Select EventID
Case #PB_Event_CloseWindow
quit = 1
EndSelect
Until EventID = 0
ClearScreen(RGB(0,0,0))
;draw something and so on
;later: some stuff to save cpu (get the time between two flips
;and wait for it. Have a look at the forum.
FlipBuffers()
Until quit = 1
EndIf
EndIf
EndIf
Code: Alles auswählen
If InitSprite()
If OpenWindow(0, 0, 0, 1024,768, "Explorer1")
If OpenWindowedScreen(WindowID(0),0,0,1024,768, 1, 0, 0)
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow
Quit = 1
EndIf
Until Quit = 1
EndIf
EndIf
EndIf