Page 1 sur 1

[R] GUI Message global

Posté : mar. 09 sept. 2014 10:32
par jcaspar
B :D njour à tous !

Voici un formulaire avec plusieurs champs... Je souhaiterais que lorsque tous les champs sont saisis un message récapitulatif comprenant les informations saisies pour tous les champs..s'affiche au lieu d'un message à la saisie de chaque champ.... pourriez vous svp
m'indiquer quelle serait la meilleure manière de procéder ?

En vous remerciant pour vos conseils :mrgreen:
Jean-Marc
► Afficher le texte

Re: [..] GUI Message global

Posté : mar. 09 sept. 2014 11:56
par GhostLine

Code : Tout sélectionner

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=D:\Utilisateurs\jcaspar\Desktop\Form1.kxf
$Form1 = GUICreate("Outil de création de  Signature Outlook", 624, 450, 192, 114)
$Group1 = GUICtrlCreateGroup("Création Signature Outlook", 8, 8, 593, 425)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Nom", 32, 56, 58, 25)
$Input1 = GUICtrlCreateInput("Saisir votre nom", 152, 56, 257, 32)
$Label2 = GUICtrlCreateLabel("Prenom", 32, 88, 80, 25)
$Input2 = GUICtrlCreateInput("Saisir votre prénom", 152, 88, 257, 32)
$Label3 = GUICtrlCreateLabel("Pôle", 32, 120, 57, 25)
$Input3 = GUICtrlCreateInput("Saisir votre Pôle", 152, 120, 257, 32)
$Label4 = GUICtrlCreateLabel("Tél fixe", 32, 152, 70, 25)
$Input4 = GUICtrlCreateInput("Saisir votre N° de Tél Fixe", 152, 152, 257, 32)
$Label5 = GUICtrlCreateLabel("Tél Portable", 32, 184, 101, 33)
$Input5 = GUICtrlCreateInput("Saisir N° Tél Portable", 152, 184, 257, 32)
$Label6 = GUICtrlCreateLabel("Fax", 32, 216, 77, 25)
$Input6 = GUICtrlCreateInput("Saisir N° Fax", 152, 216, 257, 32)
$Label7 = GUICtrlCreateLabel("Email", 32, 248, 53, 25)
$Input7 = GUICtrlCreateInput("Saisir Email", 152, 248, 257, 32)
$Button1 = GUICtrlCreateButton("Valider", 152, 304, 81, 33)
$Button2 = GUICtrlCreateButton("Annuler", 328, 304, 81, 33)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Button1
            Msgbox (64,"Recapitulatif"," Vous avez saisi votre nom : " & guictrlread($Input1)&@CRLF& "Vous avez saisi votre Prénom : " & guictrlread($Input2) & @CRLF & "Vous avez saisi votre Pôle d'appartenance : "& guictrlread($Input3) & @CRLF &"Vous avez saisi votre N° de Tél Fixe : "& guictrlread($Input4) & @CRLF &"Vous avez saisi votre N° de Tél Portable : "& guictrlread($Input5) & @CRLF &" Vous avez saisi votre N° de Fax : "& guictrlread($Input6) & @CRLF &"Vous avez saisi votre Email : "& guictrlread($Input7))

    EndSwitch
WEnd

Re: [..] GUI Message global

Posté : mar. 09 sept. 2014 18:04
par jcaspar
M :mrgreen: erci beaucoup pour votre réponse ....génial !

Re: [R] GUI Message global

Posté : mer. 10 sept. 2014 09:30
par GhostLine
Avec plaisir ;)