fr:code:windows:inputdialog
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
fr:code:windows:inputdialog [2012/04/26 15:18] – créée wismerheal | fr:code:windows:inputdialog [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== InputDialog [En cours de Traduction Wismerheal][WSL] ====== | ====== InputDialog [En cours de Traduction Wismerheal][WSL] ====== | ||
- | This object | + | Cet object |
- | ===== Functions | + | ===== Fonctions |
==== InputDialog ==== | ==== InputDialog ==== | ||
- | Constructor function. | + | Fonction de construction. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
var myObject = new InputDialog(); | var myObject = new InputDialog(); | ||
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) |
- | * labelText - (string) | + | * labelText - (string) |
- | * okButtonText - (string) | + | * okButtonText - (string) |
- | * cancelButtonText - (string) | + | * cancelButtonText - (string) |
- | * textEchoMode - ([[# | + | * textEchoMode - ([[# |
- | * floatDecimals - (integer) | + | * floatDecimals - (integer) |
- | * integerStep - (integer) the integer step | + | * integerStep - (integer) the integer step (l' |
- | * minimum - (mixed) | + | * minimum - (mixed) |
- | * maximum - (mixed) | + | * maximum - (mixed) |
- | * range - (object) | + | * range - (object) |
- | * minimum - (mixed) | + | * minimum - (mixed) |
- | * maximum - (mixed) | + | * maximum - (mixed) |
- | * inputType - ([[# | + | * inputType - ([[# |
- | * value - (mixed) | + | * value - (mixed) |
- | * items - (array) | + | * items - (array) |
- | * itemsEditable - (boolean) | + | * itemsEditable - (boolean) |
- | * onClosed - ([[# | + | * onClosed - ([[# |
- | * onValueChanged - ([[# | + | * onValueChanged - ([[# |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterTypeError) | + | * (ParameterTypeError) type de paramètre incorrect |
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
=== Example === | === Example === | ||
Ligne 55: | Ligne 55: | ||
</ | </ | ||
- | ===== 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 66: | Ligne 66: | ||
=== Arguments === | === Arguments === | ||
- | - title - (string) | + | - title - (string) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setPosition ==== | ==== setPosition ==== | ||
- | Sets the window' | + | Définit la position |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setPosition(point); | myObject.setPosition(point); | ||
Ligne 80: | Ligne 80: | ||
=== Arguments === | === Arguments === | ||
- | - point - ([[en: | + | - point - ([[en: |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== 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 94: | Ligne 94: | ||
=== Arguments === | === Arguments === | ||
- | - opacity - (float) | + | - opacity - (float) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setEnabled ==== | ==== setEnabled ==== | ||
- | Sets the window's enabled status. | + | Définit le statut d'activité de la fenêtre. |
=== Syntax === | === Syntax === | ||
Ligne 108: | Ligne 108: | ||
=== Arguments === | === Arguments === | ||
- | - enabled - (boolean) | + | - enabled - (boolean) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setVisible ==== | ==== setVisible ==== | ||
- | Sets the window' | + | Définit le statut |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setVisible(visible); | myObject.setVisible(visible); | ||
Ligne 122: | Ligne 122: | ||
=== Arguments === | === Arguments === | ||
- | - visible - (boolean) | + | - visible - (boolean) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== close ==== | ==== close ==== | ||
- | Closes the window. | + | Ferme la fenêtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.close(); | myObject.close(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== 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 |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.visible(); | myObject.visible(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (boolean) | + | * (boolean) |
==== setLabelText ==== | ==== setLabelText ==== | ||
- | Sets the label text. | + | Définit le label de texte. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setLabelText(text); | myObject.setLabelText(text); | ||
Ligne 202: | Ligne 202: | ||
=== Arguments === | === Arguments === | ||
- | - text - (string) | + | - text - (string) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setOkButtonText ==== | ==== setOkButtonText ==== | ||
- | Sets the ok button text. | + | Définit le texte du bouton OK. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setLabelText(text); | myObject.setLabelText(text); | ||
Ligne 216: | Ligne 216: | ||
=== Arguments === | === Arguments === | ||
- | - text - (string) | + | - text - (string) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setCancelButtonText ==== | ==== setCancelButtonText ==== | ||
- | Sets the cancel button text. | + | Définit le texte du bouton ANNULER. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setCancelButtonText(text); | myObject.setCancelButtonText(text); | ||
Ligne 230: | Ligne 230: | ||
=== Arguments === | === Arguments === | ||
- | - text - (string) | + | - text - (string) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setTextEchoMode ==== | ==== setTextEchoMode ==== | ||
- | Sets the text echo mode. | + | Définit le texte du mode " |
+ | |||
+ | === Syntaxe === | ||
- | === Syntax === | ||
<code javascript> | <code javascript> | ||
myObject.setTextEchoMode(textEchoMode); | myObject.setTextEchoMode(textEchoMode); | ||
Ligne 244: | Ligne 245: | ||
=== Arguments === | === Arguments === | ||
- | - textEchoMode - ([[# | + | - textEchoMode - ([[# |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setFloatDecimals ==== | ==== setFloatDecimals ==== | ||
- | Sets the number of decimals of floating values. | + | Définit le nombre de décimales des valeurs à virgule (floating values). |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setFloatDecimals(decimals); | myObject.setFloatDecimals(decimals); | ||
Ligne 258: | Ligne 259: | ||
=== Arguments === | === Arguments === | ||
- | - decimals - (integer) | + | - decimals - (integer) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setIntegerStep ==== | ==== setIntegerStep ==== | ||
- | Sets the integer | + | Définit l' |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setIntegerStep(step); | myObject.setIntegerStep(step); | ||
Ligne 272: | Ligne 273: | ||
=== Arguments === | === Arguments === | ||
- | - step - (integer) | + | - step - (integer) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setMaximum ==== | ==== setMaximum ==== | ||
- | Sets the maximum | + | Définit la valeur |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setMaximum(maximum); | myObject.setMaximum(maximum); | ||
Ligne 286: | Ligne 287: | ||
=== Arguments === | === Arguments === | ||
- | - maximum - (mixed) | + | - maximum - (mixed) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setMinimum ==== | ==== setMinimum ==== | ||
- | Sets the minimum | + | Définit la valeur |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setMinimum(minimum); | myObject.setMinimum(minimum); | ||
Ligne 300: | Ligne 301: | ||
=== Arguments === | === Arguments === | ||
- | - minimum - (mixed) | + | - minimum - (mixed) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setRange ==== | ==== setRange ==== | ||
- | Sets the minimum | + | Définit les valeurs |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setRange(minimum, | myObject.setRange(minimum, | ||
Ligne 314: | Ligne 315: | ||
=== Arguments === | === Arguments === | ||
- | - minimum - (mixed) | + | - minimum - (mixed) |
- | - maximum - (mixed) | + | - maximum - (mixed) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setInputType ==== | ==== setInputType ==== | ||
- | Sets the input type. | + | Définit le type d' |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setRange(inputType); | myObject.setRange(inputType); | ||
Ligne 329: | Ligne 330: | ||
=== Arguments === | === Arguments === | ||
- | - inputType - ([[# | + | - inputType - ([[# |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setValue ==== | ==== setValue ==== | ||
- | Sets the value. | + | Définit la valeur. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setValue(value); | myObject.setValue(value); | ||
Ligne 343: | Ligne 344: | ||
=== Arguments === | === Arguments === | ||
- | - value - (mixed) | + | - value - (mixed) |
- | === Returns | + | === Renvois |
- | * (InputDialog) | + | * (InputDialog) |
==== setItems ==== | ==== setItems ==== | ||
- | Sets the items that can be choosen from. | + | Définit les éléments à partir desquels le choix peut être fait. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setItems(items); | myObject.setItems(items); | ||
Ligne 357: | Ligne 358: | ||
=== Arguments === | === Arguments === | ||
- | - items - (array) | + | - items - (array) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
==== setItemsEditable ==== | ==== setItemsEditable ==== | ||
- | Sets the items as editable. | + | Définit les éléments comme éditables. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setItemsEditable(itemsEditable); | myObject.setItemsEditable(itemsEditable); | ||
Ligne 371: | Ligne 372: | ||
=== Arguments === | === Arguments === | ||
- | - itemsEditable - (boolean) | + | - itemsEditable - (boolean) |
- | === Returns | + | === Renvoi |
- | * (InputDialog) | + | * (InputDialog) |
- | ==== value ==== | + | ==== valeur |
- | Returns the value. | + | Renvoi la valeur. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.value(); | myObject.value(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (mixed) | + | * (mixed) |
==== 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 |
- | * (InputDialog) | + | * (InputDialog) |
==== 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 421: | Ligne 422: | ||
=== Arguments === | === Arguments === | ||
- | - result - (integer) | + | - result - (integer) |
=== Example === | === Example === | ||
Ligne 435: | Ligne 436: | ||
==== onValueChanged ==== | ==== onValueChanged ==== | ||
- | Called when the value changes. | + | Appelé quand la valeur change. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onValueChanged = function(value) {}; | myObject.onValueChanged = function(value) {}; | ||
Ligne 453: | Ligne 454: | ||
</ | </ | ||
- | ===== 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) |
==== value ==== | ==== value ==== | ||
- | The window' | + | La valeur de la fenêtre. (mixed) |
===== Enumerations ===== | ===== Enumerations ===== | ||
==== InputType ==== | ==== InputType ==== | ||
- | The input type. | + | LE type d' |
- | === Values | + | === Valeurs |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
==== TextEchoMode ==== | ==== TextEchoMode ==== | ||
- | The text echo mode. | + | Le mode "text echo". |
- | === Values | + | === Valeurs |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
fr/code/windows/inputdialog.1335453487.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)