fr:code:windows:messagebox
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fr:code:windows:messagebox [2012/05/03 13:52] – wismerheal | fr: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' | Cet objet représente une fenêtre affichant un texte à l' | ||
| - | ===== 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) | + | - parameters - (object) |
| - | * title - (string) | + | * title - (string) |
| - | * position - ([[en: | + | * position - ([[en: |
| - | * opacity - (float) | + | * opacity - (float) |
| - | * enabled - (boolean) | + | * enabled - (boolean) |
| - | * visible - (boolean) | + | * visible - (boolean) |
| - | * text - (string) | + | * text - (string) |
| - | * detailedText - (string) | + | * detailedText - (string) |
| - | * informativeText - (string) | + | * informativeText - (string) |
| - | * buttons - ([[# | + | * buttons - ([[# |
| - | * icon - ([[# | + | * icon - ([[# |
| - | * defaultButton - ([[# | + | * defaultButton - ([[# |
| - | * escapeButton - ([[# | + | * escapeButton - ([[# |
| - | * onClosed - ([[# | + | * onClosed - ([[# |
| === Exceptions === | === Exceptions === | ||
| - | * (ParameterTypeError) | + | * (ParameterTypeError) type de paramètre incorrect |
| - | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
| === 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 | ||
| }); | }); | ||
| </ | </ | ||
| - | ===== Methods | + | ===== Méthodes |
| ==== setTitle ==== | ==== setTitle ==== | ||
| - | Sets the window' | + | 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) | + | - title - (string) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setPosition ==== | ==== setPosition ==== | ||
| - | Sets the window' | + | Définit la position |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setPosition(point); | myObject.setPosition(point); | ||
| Ligne 72: | Ligne 72: | ||
| === Arguments === | === Arguments === | ||
| - | - point - ([[en: | + | - point - ([[en: |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== 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) | + | - opacity - (float) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== 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) | + | - enabled - (boolean) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setVisible ==== | ==== setVisible ==== | ||
| - | Sets the window' | + | Définit le statut |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setVisible(visible); | myObject.setVisible(visible); | ||
| Ligne 114: | Ligne 114: | ||
| === Arguments === | === Arguments === | ||
| - | - visible - (boolean) | + | - visible - (boolean) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== close ==== | ==== close ==== | ||
| - | Closes the window. | + | Ferme la fenêtre. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.close(); | myObject.close(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== title ==== | ==== title ==== | ||
| - | Returns the window' | + | Renvoi le titre de la fenêtre. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.title(); | myObject.title(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (string) | + | * (string) |
| ==== position ==== | ==== position ==== | ||
| - | Returns the window' | + | Renvoi la position |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.position(); | myObject.position(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * ([[en: | + | * ([[en: |
| ==== opacity ==== | ==== opacity ==== | ||
| - | Returns the window's opacity. | + | Renvoi l'opacité de la fenêtre. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.opacity(); | myObject.opacity(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (float) | + | * (float) |
| ==== 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(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (boolean) | + | * (boolean) |
| ==== visible ==== | ==== visible ==== | ||
| - | Returns the window' | + | Renvoi le statut visibilité de la fenêtre. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.visible(); | myObject.visible(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (boolean) | + | * (boolean) |
| ==== 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) | + | - text - (string) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== 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) | + | - detailedText - (string) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setInformativeText ==== | ==== setInformativeText ==== | ||
| - | Sets the informative text (appended to text). | + | Définit le texte d' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setInformativeText(informativeText); | myObject.setInformativeText(informativeText); | ||
| Ligne 222: | Ligne 222: | ||
| === Arguments === | === Arguments === | ||
| - | - informativeText - (string) | + | - informativeText - (string) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== 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 - ([[# | + | - buttons - ([[# |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setIcon ==== | ==== setIcon ==== | ||
| - | Sets the icon to use. | + | D2finit l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setIcon(icon); | myObject.setIcon(icon); | ||
| Ligne 250: | Ligne 250: | ||
| === Arguments === | === Arguments === | ||
| - | - buttons - ([[# | + | - buttons - ([[# |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== 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 - ([[# | + | - button - ([[# |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setEscapeButton ==== | ==== setEscapeButton ==== | ||
| - | Sets the button pressed when pressing the escape key. | + | Définit le bouton pressé quand on utilise la touche " |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setEscapeButton(button); | myObject.setEscapeButton(button); | ||
| Ligne 278: | Ligne 278: | ||
| === Arguments === | === Arguments === | ||
| - | - button - ([[# | + | - button - ([[# |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== addCustomButton ==== | ==== addCustomButton ==== | ||
| - | Adds a custom button. | + | Ajoute un bouton personnalisé. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.addCustomButton(button, | myObject.addCustomButton(button, | ||
| Ligne 292: | Ligne 292: | ||
| === Arguments === | === Arguments === | ||
| - | - button - ([[# | + | - button - ([[# |
| - | - text - (string) | + | - text - (string) |
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| === Exceptions === | === Exceptions === | ||
| - | * (AddCustomButtonError) | + | * (AddCustomButtonError) |
| ==== show ==== | ==== show ==== | ||
| - | Show the window. (non-blocking) | + | Affiche la fenêtre. (non-bloquant) |
| - | Use the [[# | + | Utilise l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.show(); | myObject.show(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (MessageBox) | + | * (MessageBox) |
| ==== showModal ==== | ==== showModal ==== | ||
| - | Show the window. (blocking) | + | Affiche la fenêtre. (bloquant) |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.showModal(); | myObject.showModal(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoi |
| - | * (integer) | + | * (integer) |
| - | ===== 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) | + | - result - (integer) |
| === Example === | === Example === | ||
| Ligne 348: | Ligne 348: | ||
| </ | </ | ||
| - | ===== Attributes | + | ===== Attributs |
| ==== title ==== | ==== title ==== | ||
| - | The window' | + | Le titre de la fenêtre. (string) |
| ==== position ==== | ==== position ==== | ||
| - | The window' | + | La position |
| ==== opacity ==== | ==== opacity ==== | ||
| - | The window's opacity. (float) | + | L'opacité de la fenêtre. (float) |
| ==== enabled ==== | ==== enabled ==== | ||
| - | The window' | + | Le statut d’activité de la fenêtre. (boolean) |
| ==== visible ==== | ==== visible ==== | ||
| - | The window' | + | 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: un bouton |
| - | - Open: an " | + | - Open: un bouton |
| - | - Save: a " | + | - Save: un bouton |
| - | - Cancel: | + | - Cancel: |
| - | - Close: | + | - Close: |
| - | - Discard: | + | - Discard: |
| - | - Apply: | + | - Apply: |
| - | - Reset: | + | - Reset: |
| - | - RestoreDefaults: | + | - RestoreDefaults: |
| - | - Help: a " | + | - Help: un bouton |
| - | - SaveAll: | + | - SaveAll: |
| - | - Yes: a " | + | - Yes: un bouton |
| - | - YesToAll: | + | - YesToAll: |
| - | - No: a " | + | - No: un bouton |
| - | - NoToAll: | + | - NoToAll: |
| - | - Abort: | + | - Abort: |
| - | - Retry: | + | - Retry: |
| - | - Ignore: | + | - Ignore: |
| - | - NoButton: | + | - NoButton: |
| === Notes === | === Notes === | ||
| - | This is a flag enumeration, this means that you can use multiple values using the | operator. | + | Ceci est une énumération d' |
| Example : | Example : | ||
| <code javascript> | <code javascript> | ||
| - | myObject.setButtons(MessageBox.Yes | MessageBox.Save); | + | myObject.setButtons(MessageBox.Yes | MessageBox.Save); |
| </ | </ | ||
| ==== Icon ==== | ==== Icon ==== | ||
| - | An icon. | + | Un icône. |
| - | === Values | + | === Valeurs |
| - | - NoIcon: | + | - NoIcon: |
| - | - Question: | + | - Question: |
| - | - Information: | + | - Information: |
| - | - Warning: | + | - Warning: |
| - | - Critical: | + | - Critical: |
fr/code/windows/messagebox.1336053145.txt.gz · Dernière modification : (modification externe)
