Pourquoi ce code ne fonctionne til pas ?
Code : Tout sélectionner
hwnd.l=OpenWindow(0,0,0,270,160,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"HyperlinkGadget")
If CreateGadgetList(WindowID(0))
ButtonGadget(10, 10, 10,250,20,"Lien rouge")
Repeat
Event = WindowEvent()
If Event=#PB_Event_Gadget
gadget=EventGadgetID()
If gadget =10
ShellExecute_(hWnd.l, "Open", "http:\\www.purebasic.com", "", "",1)
EndIf
EndIf
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf