If OpenWindow(0, 0,0,400, 300, "PureBoutton", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered)
; This is the 'event loop'. All the user actions are processed here.
; It's very easy to understand: when an action occurs, the EventID
; isn't 0 and we just have to see what have happened...
;
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_CloseWindow ; If the user has pressed on the close button
Quit = 1
EndIf
Until Quit = 1
EndIf
End ; All the opened windows are closed automatically by PureBasic
!i!i!i!i!i!i!i!i!i! !i!i!i!i!i!i! !i!i!i!
//// Informations ////
Intel Core i7 4770 64 bits - GTX 650 Ti Version de PB : 6.12LTS- 64 bits
OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StartDrawing(WindowOutput(0))
For x = 0 To 199
For y = 0 To 199
Plot(x, y, RGB(Random(255), Random(255), Random(255)))
Next y
Next x
StopDrawing()
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
Hasta la vista !
Dernière modification par Huitbit le sam. 05/mars/2011 14:06, modifié 1 fois.
Oui et a propos les amis, comment je crée par exemple une forme sur la fenêtre mais
avec du transparent, on peut le faire sur une image (ya que la que sa marche d'ailleur)
sinon c'est pôssible d'apres vous ?
La vie, C'est comme, Une boitte, De startis, On en voie, De toutes, Les couleurs !
dayvid a écrit :Oui et a propos les amis, comment je crée par exemple une forme sur la fenêtre mais
avec du transparent, on peut le faire sur une image (ya que la que sa marche d'ailleur)
sinon c'est pôssible d'apres vous ?
C'est ce que je suis exactement en train de coder pour toi !!
Code dans la journee. Patience
!i!i!i!i!i!i!i!i!i! !i!i!i!i!i!i! !i!i!i!
//// Informations ////
Intel Core i7 4770 64 bits - GTX 650 Ti Version de PB : 6.12LTS- 64 bits