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 14:41] – wismerheal | fr:code:windows:messagebox [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| 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 | ||
| }); | }); | ||
| Ligne 86: | Ligne 86: | ||
| === Arguments === | === Arguments === | ||
| - | - opacity - (float) | + | - opacity - (float) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setEnabled ==== | ==== setEnabled ==== | ||
| - | Sets the window's enabled status. | + | Définit le statut d'activité de la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 100: | Ligne 100: | ||
| === Arguments === | === Arguments === | ||
| - | - enabled - (boolean) | + | - enabled - (boolean) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setVisible ==== | ==== setVisible ==== | ||
| - | Sets the window' | + | Définit le statut |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 114: | Ligne 114: | ||
| === Arguments === | === Arguments === | ||
| - | - visible - (boolean) | + | - visible - (boolean) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== close ==== | ==== close ==== | ||
| - | Closes the window. | + | Ferme la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 128: | Ligne 128: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== title ==== | ==== title ==== | ||
| - | Returns the window' | + | Renvoi le titre de la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 139: | Ligne 139: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (string) | + | * (string) |
| ==== position ==== | ==== position ==== | ||
| - | Returns the window' | + | Renvoi la position |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 150: | Ligne 150: | ||
| === Renvoi === | === Renvoi === | ||
| - | * ([[en: | + | * ([[en: |
| ==== opacity ==== | ==== opacity ==== | ||
| - | Returns the window's opacity. | + | Renvoi l'opacité de la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 161: | Ligne 161: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (float) | + | * (float) |
| ==== enabled ==== | ==== enabled ==== | ||
| - | Returns the window's enabled status. | + | Renvoi le statut d'activité de la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 172: | Ligne 172: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (boolean) | + | * (boolean) |
| ==== visible ==== | ==== visible ==== | ||
| - | Returns the window' | + | Renvoi le statut visibilité de la fenêtre. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 183: | Ligne 183: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (boolean) | + | * (boolean) |
| ==== setText ==== | ==== setText ==== | ||
| - | Sets the text. | + | Définit le texte. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 194: | Ligne 194: | ||
| === Arguments === | === Arguments === | ||
| - | - text - (string) | + | - text - (string) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setDetailedText ==== | ==== setDetailedText ==== | ||
| Ligne 208: | Ligne 208: | ||
| === Arguments === | === Arguments === | ||
| - | - detailedText - (string) | + | - detailedText - (string) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setInformativeText ==== | ==== setInformativeText ==== | ||
| - | Sets the informative text (appended to text). | + | Définit le texte d' |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 222: | Ligne 222: | ||
| === Arguments === | === Arguments === | ||
| - | - informativeText - (string) | + | - informativeText - (string) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setButtons ==== | ==== setButtons ==== | ||
| - | Sets the buttons to use. | + | Définit le bouton à utiliser. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 236: | Ligne 236: | ||
| === Arguments === | === Arguments === | ||
| - | - buttons - ([[# | + | - buttons - ([[# |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setIcon ==== | ==== setIcon ==== | ||
| - | Sets the icon to use. | + | D2finit l' |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 250: | Ligne 250: | ||
| === Arguments === | === Arguments === | ||
| - | - buttons - ([[# | + | - buttons - ([[# |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setDefaultButton ==== | ==== setDefaultButton ==== | ||
| - | Sets the default selected button. | + | Définit le bouton sélectionné par défaut. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 264: | Ligne 264: | ||
| === Arguments === | === Arguments === | ||
| - | - button - ([[# | + | - button - ([[# |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== setEscapeButton ==== | ==== setEscapeButton ==== | ||
| - | Sets the button pressed when pressing the escape key. | + | Définit le bouton pressé quand on utilise la touche " |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 278: | Ligne 278: | ||
| === Arguments === | === Arguments === | ||
| - | - button - ([[# | + | - button - ([[# |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== addCustomButton ==== | ==== addCustomButton ==== | ||
| - | Adds a custom button. | + | Ajoute un bouton personnalisé. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 292: | Ligne 292: | ||
| === Arguments === | === Arguments === | ||
| - | - button - ([[# | + | - button - ([[# |
| - | - text - (string) | + | - text - (string) |
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| === Exceptions === | === Exceptions === | ||
| - | * (AddCustomButtonError) | + | * (AddCustomButtonError) |
| ==== show ==== | ==== show ==== | ||
| - | Show the window. (non-blocking) | + | Affiche la fenêtre. (non-bloquant) |
| - | Use the [[# | + | Utilise l' |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 311: | Ligne 311: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (MessageBox) | + | * (MessageBox) |
| ==== showModal ==== | ==== showModal ==== | ||
| - | Show the window. (blocking) | + | Affiche la fenêtre. (bloquant) |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 322: | Ligne 322: | ||
| === Renvoi === | === Renvoi === | ||
| - | * (integer) | + | * (integer) |
| - | ===== Events | + | ===== Evènements |
| ==== onClosed ==== | ==== onClosed ==== | ||
| - | Called when the window is closed. | + | Appelé quand la fenêtre est fermée. |
| === Syntaxe === | === Syntaxe === | ||
| Ligne 335: | Ligne 335: | ||
| === Arguments === | === Arguments === | ||
| - | - result - (integer) | + | - result - (integer) |
| === Example === | === Example === | ||
| Ligne 351: | Ligne 351: | ||
| ==== 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 371: | Ligne 371: | ||
| === Valeurs === | === 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.1336056088.txt.gz · Dernière modification : (modification externe)
