la fenetre qui voulait devenir un sprite
Publié : mar. 22/juil./2008 10:12
bonjour
ptit truc tres pratique le (even=16)
ptit truc tres pratique le (even=16)
Code : Tout sélectionner
For i=0 To 1000
OpenWindow(0, 50+Random(800), 50+Random(600), 50+Random(200), 50+Random(200), "", #WS_SYSMENU|#PB_Window_BorderLess)
StickyWindow(0, 1)
StartDrawing(WindowOutput(0))
DrawingMode(1)
FrontColor(RGB(Random(255),Random(255),Random(255)))
FillArea(0 ,0 ,RGB(Random(255),Random(255),Random(255)),RGB(Random(255),Random(255),Random(255)))
StopDrawing()
Repeat
Event = WaitWindowEvent()
Delay(1)
CloseWindow(0)
event=16
Until Event = #PB_Event_CloseWindow
Next i