et j'aimerais savoir quel est le scipt pour ouvrir une nouvelle fenetre en apuyant sur un bouton de la fenetre principal svp

Voila ,jespere avoir été clair

Merci à vous

Code : Tout sélectionner
;- Window Constants
;
Enumeration
#Window_0
#Window_1
EndEnumeration
;- Gadget Constants
;
Enumeration
#Button_0
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 284, 145, 600, 300, "1ere fenetre", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_0))
ButtonGadget(#Button_0, 190, 120, 170, 60, "fenetre 2")
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat ; Start of the event loop
Event = WaitWindowEvent() ; This line waits until an event is received from Windows
WindowID = EventWindow() ; The Window where the event is generated, can be used in the gadget procedures
GadgetID = EventGadget() ; Is it a gadget event?
EventType = EventType() ; The event type
;You can place code here, and use the result as parameters for the procedures
If Event = #PB_Event_Gadget
If GadgetID = #Button_0
OpenWindow(#Window_1, 294, 245, 600, 300, "2eme fenetre", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
EndIf
EndIf
Until Event = #PB_Event_CloseWindow ; End of the event loop
End
;
Un langage compilé génère directement un exécutable autonome, qui se suffit à lui-même pour fonctionner car il contient du langage machine. (C, VB, Windev)
Avantage : Rapide
Inconvénient : Fermé si on n'a pas le source, besoin de l'outil de développement pour modifier.
Un langage interprété a besoin d'un interpréteur (cqfd).
Par exemple, le qbasic d'il y a une dizaine d'année, se lançait avec la commande : qbasic /run prog.bas
Avantage : le programme prog.bas est un fichier texte, facilement modifiable.
Inconvénient : C'est forcément plus lent que quand c'est compilé.
Code : Tout sélectionner
;- Window Constants
;
Enumeration
#Window_0
#Window_1
EndEnumeration
;- Gadget Constants
;
Enumeration
#Button_0
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 284, 145, 600, 300, "1ere fenetre", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_0))
ButtonGadget(#Button_0, 190, 120, 170, 60, "fenetre 2")
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat ; Start of the event loop
Event = WaitWindowEvent() ; This line waits until an event is received from Windows
WindowID = EventWindow() ; The Window where the event is generated, can be used in the gadget procedures
GadgetID = EventGadget() ; Is it a gadget event?
EventType = EventType() ; The event type
;You can place code here, and use the result as parameters for the procedures
If Event = #PB_Event_Gadget
If GadgetID = #Button_0
Gosub fenetre_2
EndIf
EndIf
Until Event = #PB_Event_CloseWindow ; End of the event loop
End
;
; 2em fenetre
fenetre_2:
OpenWindow(#Window_1, 294, 245, 600, 300, "2eme fenetre", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
Repeat
Event2 = WaitWindowEvent() ; This line waits until an event is received from Windows
WindowID2 = EventWindow() ; The Window where the event is generated, can be used in the gadget procedures
GadgetID2 = EventGadget() ; Is it a gadget event?
EventType2 = EventType() ; The event type
Until Event2=#PB_Event_CloseWindow
CloseWindow(#Window_1)
Return
c'est avec la fonction webgadget()sais quoi le code pour aficher une page web dans la fenetre