voici ma question je n'arrive pas a faire pour qu'a l'ouverture de ma fenetre s'afiche les seconde en temps reel tout le temps que ma fenetre reste ouvert.
si vous avez pas comprit merci de me le faire part

voici un exemple
Code : Tout sélectionner
;- Window Constants
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
Enumeration
#Text_0
#Text_1
#Text_2
EndEnumeration
;liste chainee
;- Fonts
Global FontID1
FontID1 = LoadFont(1, "Georgia", 10)
Global FontID2
FontID2 = LoadFont(2, "Comic Sans MS", 10, #PB_Font_Bold)
Global FontID3
FontID3 = LoadFont(3, "Comic Sans MS", 10, #PB_Font_Bold | #PB_Font_Italic)
If OpenWindow(#Window_0, 216, 0, 240, 120, #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "exemple")
If CreateGadgetList(WindowID())
TextGadget(#Text_1, 5, 50, 230, 20, "temps de connexion : "+time$)
SetGadgetFont(#Text_1, FontID3)
EndIf
EndIf
Repeat
event = WaitWindowEvent()
If event = #PB_EventGadget
Select EventGadgetID()
EndSelect
EndIf
Until event = #PB_EventCloseWindow
@++