Bon allez..puisqu'on est dans l'hémorragie temporelle chronophage...et que j'ai finit ma journée entiere (voir ma semaine) à faire du B4A
Mes mains tremblent, de ne pas avoir codé PB, vous m'avez fait envie avec vos conneries...alors j'ai eu aussi une idée (siiiii !!! ça m'arrive

)
Pourquoi on ferait pas un langage pour la france profonde ???
Code : Tout sélectionner
Macro Opene_ouinedau : OpenWindow : EndMacro
Macro Mes_sage_requesteur : MessageRequester : EndMacro
Macro Ri_sailleze_ouinedau : ResizeWindow : EndMacro
Macro Ouaiyete_ouinedau_et_vante : WaitWindowEvent : EndMacro
Macro Et_vante : Event : EndMacro
Macro RuiPite : Repeat : EndMacro
Macro EuneTile : Until : EndMacro
Macro HaineDife : EndIf : EndMacro
Macro HaineDeu : End : EndMacro
Macro Diese_Perber_et_vante_ouinedau : #PB_Event_CloseWindow : EndMacro
If Opene_ouinedau(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
Mes_sage_requesteur("Information", "Click to move the Window", 0)
Ri_sailleze_ouinedau(0, 200, 200, #PB_Ignore, #PB_Ignore) ; Move the window to the coordinate 200,200
Mes_sage_requesteur("Information", "Click to resize the Window", 0)
Ri_sailleze_ouinedau(0, #PB_Ignore, #PB_Ignore, 320, 200) ; Resize the window to 320,200
RuiPite
Et_vante = Ouaiyete_ouinedau_et_vante()
If Et_vante = Diese_Perber_et_vante_ouinedau ; If the user has pressed on the close button
Quit = 1
EndIf
EuneTile Quit = 1
HaineDife
HaineDeu ; All the opened
Code d'origine
Code : Tout sélectionner
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
MessageRequester("Information", "Click to move the Window", 0)
ResizeWindow(0, 200, 200, #PB_Ignore, #PB_Ignore) ; Move the window to the coordinate 200,200
MessageRequester("Information", "Click to resize the Window", 0)
ResizeWindow(0, #PB_Ignore, #PB_Ignore, 320, 200) ; Resize the window to 320,200
;
; This is the 'event loop'. All the user actions are processed here.
; It's very easy to understand: when an action occurs, the Event
; 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