Outils pour utilisateurs

Outils du site


fr:code:windows:messagebox

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fr:code:windows:messagebox [2012/05/03 13:52] wismerhealfr:code:windows:messagebox [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1
Ligne 2: Ligne 2:
 Cet objet représente une fenêtre affichant un texte à l'utilisateur. Cet objet représente une fenêtre affichant un texte à l'utilisateur.
  
-===== Functions =====+===== Fonctions =====
  
 ==== MessageBox ==== ==== MessageBox ====
-Constructor function.+Fonction de construction.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 var myObject = new MessageBox(); var myObject = new MessageBox();
Ligne 16: Ligne 16:
  
 === Arguments === === Arguments ===
-  - parameters - (object) window parameters +  - parameters - (object) paramètres de la fenêtre 
-    * title - (string) the window's title +    * title - (string) le titre de la fenêtre 
-    * position - ([[en:code:core:point|Point]]) the window'position +    * position - ([[en:code:core:point|Point]]) la position de la fenêtre 
-    * opacity - (float) the window's opacity +    * opacity - (float) l'opacité de la fenêtre 
-    * enabled - (boolean) the window's enabled status +    * enabled - (boolean) le statut d'activité de la fenêtre 
-    * visible - (boolean) the window's visible status +    * visible - (boolean) le statut de visibilité de la fenêtre 
-    * text - (string) the text +    * text - (string) le texte 
-    * detailedText - (string) the detailed text +    * detailedText - (string) le détail du texte 
-    * informativeText - (string) the informative text (appended to text+    * informativeText - (string) le texte d'information (annexe de texte
-    * buttons - ([[#standardbutton|StandardButton]]) a flag list of buttons +    * buttons - ([[#standardbutton|StandardButton]]) a flag list of buttons (une liste de boutons) 
-    * icon - ([[#icon|Icon]]) the number of decimals +    * icon - ([[#icon|Icon]]) le nombre de décimales 
-    * defaultButton - ([[#standardbutton|StandardButton]]) the default selected button +    * defaultButton - ([[#standardbutton|StandardButton]]) le bouton sélectionné par défaut. 
-    * escapeButton - ([[#standardbutton|StandardButton]]) the button pressed when pressing escape +    * escapeButton - ([[#standardbutton|StandardButton]]) le bouton pressé quand on appui sur "échap" 
-    * onClosed - ([[#onclosed|OnClosed]]) event called when the window is closed+    * onClosed - ([[#onclosed|OnClosed]]) évènement appelé quand la fenêtre est fermée
  
 === Exceptions === === Exceptions ===
-  * (ParameterTypeError) incorrect parameter type +  * (ParameterTypeError) type de paramètre incorrect 
-  * (ParameterCountError) incorrect parameter count+  * (ParameterCountError) paramètre de compteur incorrect
  
 === Example === === Example ===
Ligne 42: Ligne 42:
 var myObject = new MessageBox({ var myObject = new MessageBox({
  title: "Press yes or no",  title: "Press yes or no",
- icon: MessageBox.Warning+ icon: MessageBox.Warning,
  buttons: MessageBox.Yes | MessageBox.No  buttons: MessageBox.Yes | MessageBox.No
 }); });
 </code> </code>
  
-===== Methods =====+===== Méthodes =====
  
 ==== setTitle ==== ==== setTitle ====
-Sets the window's title.+Définit le titre de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setTitle(title); myObject.setTitle(title);
Ligne 58: Ligne 58:
  
 === Arguments === === Arguments ===
-  - title - (string) the window's title+  - title - (string) le titre de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setPosition ==== ==== setPosition ====
-Sets the window'position.+Définit la position de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setPosition(point); myObject.setPosition(point);
Ligne 72: Ligne 72:
  
 === Arguments === === Arguments ===
-  - point - ([[en:code:core:point|Point]]) the window'position+  - point - ([[en:code:core:point|Point]]) la position de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setOpacity ==== ==== setOpacity ====
-Sets the window's opacity.+Définit l'opacité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setOpacity(opacity); myObject.setOpacity(opacity);
Ligne 86: Ligne 86:
  
 === Arguments === === Arguments ===
-  - opacity - (float) the window's opacity+  - opacity - (float) l'opacité de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setEnabled ==== ==== setEnabled ====
-Sets the window's enabled status.+Définit le statut d'activité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setEnabled(enabled); myObject.setEnabled(enabled);
Ligne 100: Ligne 100:
  
 === Arguments === === Arguments ===
-  - enabled - (boolean) the window's enabled status+  - enabled - (boolean) le statut d'activité de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setVisible ==== ==== setVisible ====
-Sets the window'visible status.+Définit le statut visible de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setVisible(visible); myObject.setVisible(visible);
Ligne 114: Ligne 114:
  
 === Arguments === === Arguments ===
-  - visible - (boolean) the window'visible status+  - visible - (boolean) le statut visible de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== close ==== ==== close ====
-Closes the window.+Ferme la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.close(); myObject.close();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== title ==== ==== title ====
-Returns the window's title.+Renvoi le titre de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.title(); myObject.title();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (string) the window's title+  * (string) le titre de la fenêtre
  
 ==== position ==== ==== position ====
-Returns the window'position.+Renvoi la position de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.position(); myObject.position();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * ([[en:code:core:point|Point]]) the window'position+  * ([[en:code:core:point|Point]]) la position de la fenêtre
  
 ==== opacity ==== ==== opacity ====
-Returns the window's opacity.+Renvoi l'opacité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.opacity(); myObject.opacity();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (float) the window's opacity+  * (float) l'opacité de la fenêtre
  
 ==== enabled ==== ==== enabled ====
-Returns the window's enabled status.+Renvoi le statut d'activité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.enabled(); myObject.enabled();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (boolean) the window's enabled status+  * (boolean) le statut d'activité de la fenêtre
  
 ==== visible ==== ==== visible ====
-Returns the window's visible status.+Renvoi le statut visibilité de la fenêtre
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.visible(); myObject.visible();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (boolean) the window's visible status+  * (boolean) le statut visibilité de la fenêtre
  
 ==== setText ==== ==== setText ====
-Sets the text.+Définit le texte.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setText(text); myObject.setText(text);
Ligne 194: Ligne 194:
  
 === Arguments === === Arguments ===
-  - text - (string) the text+  - text - (string) le texte
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setDetailedText ==== ==== setDetailedText ====
 Sets the detailed text. Sets the detailed text.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setDetailedText(detailedText); myObject.setDetailedText(detailedText);
Ligne 208: Ligne 208:
  
 === Arguments === === Arguments ===
-  - detailedText - (string) the detailed text+  - detailedText - (string) le détail du texte
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setInformativeText ==== ==== setInformativeText ====
-Sets the informative text (appended to text).+Définit le texte d'information(annexé au texte).
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setInformativeText(informativeText); myObject.setInformativeText(informativeText);
Ligne 222: Ligne 222:
  
 === Arguments === === Arguments ===
-  - informativeText - (string) the informative text+  - informativeText - (string) le texte d'information
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setButtons ==== ==== setButtons ====
-Sets the buttons to use.+Définit le bouton à utiliser.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setButtons(buttons); myObject.setButtons(buttons);
Ligne 236: Ligne 236:
  
 === Arguments === === Arguments ===
-  - buttons - ([[#standardbutton|StandardButton]]) the buttons to use (flag)+  - buttons - ([[#standardbutton|StandardButton]]) le bouton à utiliser (flag)
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setIcon ==== ==== setIcon ====
-Sets the icon to use.+D2finit l'icône à utiliser.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setIcon(icon); myObject.setIcon(icon);
Ligne 250: Ligne 250:
  
 === Arguments === === Arguments ===
-  - buttons - ([[#icon|Icon]]) the icon to use+  - buttons - ([[#icon|Icon]]) l'icône à utiliser
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setDefaultButton ==== ==== setDefaultButton ====
-Sets the default selected button.+Définit le bouton sélectionné par défaut.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setDefaultButton(button); myObject.setDefaultButton(button);
Ligne 264: Ligne 264:
  
 === Arguments === === Arguments ===
-  - button - ([[#standardbutton|StandardButton]]) the default button+  - button - ([[#standardbutton|StandardButton]]) le bouton sélectionné par défaut
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== setEscapeButton ==== ==== setEscapeButton ====
-Sets the button pressed when pressing the escape key.+Définit le bouton pressé quand on utilise la touche "échap".
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setEscapeButton(button); myObject.setEscapeButton(button);
Ligne 278: Ligne 278:
  
 === Arguments === === Arguments ===
-  - button - ([[#standardbutton|StandardButton]]) the button pressed when pressing the escape key+  - button - ([[#standardbutton|StandardButton]]) le bouton pressé quand on utilise la touche "échap"
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== addCustomButton ==== ==== addCustomButton ====
-Adds a custom button.+Ajoute un bouton personnalisé.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.addCustomButton(button, text); myObject.addCustomButton(button, text);
Ligne 292: Ligne 292:
  
 === Arguments === === Arguments ===
-  - button - ([[#standardbutton|StandardButton]]) the standard button corresponding to this custom button +  - button - ([[#standardbutton|StandardButton]]) le bouton standard correspondant à ce bouton personnalisé t 
-  - text - (string) the text of this button+  - text - (string) le texte de ce bouton
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 === Exceptions === === Exceptions ===
-  * (AddCustomButtonError) add custom button failed+  * (AddCustomButtonError) l'ajout du bouton personnalisé à échoué
  
 ==== show ==== ==== show ====
-Show the window. (non-blocking+Affiche la fenêtre. (non-bloquant
-Use the [[#onclosed|OnClosed]] event to know when the window has been closed.+Utilise l'évènement OnClosed pour savoir quand la fenêtre a été fermé
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.show(); myObject.show();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (MessageBox) this MessageBox+  * (MessageBox) cette "MessageBox" (boite de dialogue)
  
 ==== showModal ==== ==== showModal ====
-Show the window. (blocking)+Affiche la fenêtre. (bloquant
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.showModal(); myObject.showModal();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (integer) the window result (0 means that it has been canceled)+  * (integer) le résultat de la fenêtre (0 signifie que cela a été annulé)
  
-===== Events =====+===== Evènements =====
  
 ==== onClosed ==== ==== onClosed ====
-Called when the window is closed.+Appelé quand la fenêtre est fermée
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.onClosed = function(result) {}; myObject.onClosed = function(result) {};
Ligne 335: Ligne 335:
  
 === Arguments === === Arguments ===
-  - result - (integer) the window result (0 means that it has been canceled)+  - result - (integer) le résultat de la fenêtre (0 signifie que cela a été annulé)
  
 === Example === === Example ===
Ligne 348: Ligne 348:
 </code> </code>
  
-===== Attributes =====+===== Attributs =====
  
 ==== title ==== ==== title ====
-The window's title. (string)+Le titre de la fenêtre. (string)
  
 ==== position ==== ==== position ====
-The window'position. ([[en:code:core:point|Point]])+La position de la fenêtre. ([[en:code:core:point|Point]])
  
 ==== opacity ==== ==== opacity ====
-The window's opacity. (float)+L'opacité de la fenêtre. (float)
  
 ==== enabled ==== ==== enabled ====
-The window's enabled status. (boolean)+Le statut d’activité de la fenêtre. (boolean)
  
 ==== visible ==== ==== visible ====
-The window's visible status. (boolean)+Le statut de visibilité de la fenêtre. (boolean)
  
 ===== Enumerations ===== ===== Enumerations =====
Ligne 370: Ligne 370:
 A standard button. A standard button.
  
-=== Values === +=== Valeurs === 
-  - Ok: an "ok" button +  - Ok: un bouton "ok" 
-  - Open: an "open" button +  - Open: un bouton "open" 
-  - Save: "save" button +  - Save: un bouton "save" 
-  - Cancel: "cancel" button +  - Cancel: un bouton "cancel"  
-  - Close: "close" button +  - Close: un bouton "close"  
-  - Discard: "discard" button +  - Discard: un bouton "discard" 
-  - Apply: an "apply" button +  - Apply: un bouton "apply"  
-  - Reset: "reset" button +  - Reset: un bouton "reset"  
-  - RestoreDefaults: "restore defaults" button +  - RestoreDefaults: un bouton "restore defaults"  
-  - Help: "help" button +  - Help: un bouton "help"  
-  - SaveAll: "save all" button +  - SaveAll: un bouton "save all"  
-  - Yes: "yes" button +  - Yes: un bouton "yes"  
-  - YesToAll: "yes to all" button +  - YesToAll: un bouton "yes to all"  
-  - No: "no" button +  - No: un bouton "no"  
-  - NoToAll: "no to all" button +  - NoToAll: un bouton "no to all"  
-  - Abort: an "abort" button +  - Abort: un bouton "abort"  
-  - Retry: "retry" button +  - Retry: un bouton "retry"  
-  - Ignore: an "ignore" button +  - Ignore: un bouton "ignore"  
-  - NoButton: no button+  - NoButton: pas de bouton
  
 === Notes === === Notes ===
-This is a flag enumerationthis means that you can use multiple values using the operator.+Ceci est une énumération d'indicateursce la signifie que vous pouvez utiliser de multiples valeurs en usant de l'opérateur | . 
 Example : Example :
 <code javascript> <code javascript>
-myObject.setButtons(MessageBox.Yes | MessageBox.Save); //Show yes and save buttons+myObject.setButtons(MessageBox.Yes | MessageBox.Save); //Afficher le bouton "yes" et le bouton "save"
 </code> </code>
  
 ==== Icon ==== ==== Icon ====
-An icon.+Un icône.
  
-=== Values === +=== Valeurs === 
-  - NoIcon: no icon +  - NoIcon: pas d'icône 
-  - Question: a question mark icon +  - Question: un point d'interrogation 
-  - Information: an information icon +  - Information: un icône d'information 
-  - Warning: a warning icon +  - Warning: un icône d'avertissement 
-  - Critical: a critical icon (error)+  - Critical: un icône d'erreur
fr/code/windows/messagebox.1336053145.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)