Dessiner dans une windows
Publié : sam. 05/mars/2011 13:56
Salut,
quelqu'un pourrait il me rapeller comment dessiner un plot dans un wondows ?
Faut il ouvrir un screen dans le windows ? (je ne me rapelle plus rien)
quelqu'un pourrait il me rapeller comment dessiner un plot dans un wondows ?
Faut il ouvrir un screen dans le windows ? (je ne me rapelle plus rien)
Code : Tout sélectionner
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