Outils pour utilisateurs

Outils du site


fr:code:windows:colordialog

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:colordialog [2012/04/24 14:16] wismerhealfr:code:windows:colordialog [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== ColorDialog [En cours de Traduction Wismerheal][WSL] ====== ====== ColorDialog [En cours de Traduction Wismerheal][WSL] ======
-This object represents a window allowing the user to choose a color.+Cet objet représente une fenêtre permettant à l'utilisateur de choisir une couleur.
  
-===== Functions =====+===== Fonctions =====
  
 ==== ColorDialog ==== ==== ColorDialog ====
-Constructor function.+Fonction de construction.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 var myObject = new ColorDialog(); var myObject = new ColorDialog();
Ligne 16: Ligne 16:
  
 === Arguments === === Arguments ===
-  - parameters - (object) window parameters +  - paramètres - (object) paramètre de 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'activation de la fenêtre 
-    * visible - (boolean) the window'visible status +    * visible - (boolean) le statut de la fenêtre visible 
-    * showAlphaChannel - (boolean) show the alpha channel +    * showAlphaChannel - (boolean) montre le cannal alpha 
-    * color - ([[en:code:core:color|Color]]) the selected color +    * color - ([[en:code:core:color|Color]]l'évènènement "OnClosed" (à la fermeture
-    * onClosed - ([[#onclosed|OnClosed]]the OnClosed event +    * onColorSelected - ([[#oncolorselected|OnColorSelected]]) l'évènement "OnColorSelected" (à la sélection de la couleur) 
-    * onColorSelected - ([[#oncolorselected|OnColorSelected]]) the OnColorSelected event +    * onColorChanged - ([[#oncolorchanged|OnColorChanged]]) l'évènement "OnColorChanged" (au changement de la couleur)
-    * onColorChanged - ([[#oncolorchanged|OnColorChanged]]) the OnColorChanged event+
  
 === 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 43: Ligne 42:
 </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 54: Ligne 53:
  
 === Arguments === === Arguments ===
-  - title - (string) the window's title+  - title - (string) le titre de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== 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 68: Ligne 67:
  
 === 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 === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== 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 82: Ligne 81:
  
 === Arguments === === Arguments ===
-  - opacity - (float) the window's opacity+  - opacity - (float) l'opacité de la fenêtre
  
 === Returns === === Returns ===
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce ColorDialog
  
 ==== 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 96: Ligne 95:
  
 === Arguments === === Arguments ===
-  - enabled - (boolean) the window's enabled status +  - enabled - (boolean) le statut d'activité de la fenêtre 
- +nvoiturns === 
-=== Returns === +  * (ColorDialog) ce "ColorDialog"
-  * (ColorDialog) this ColorDialog+
  
 ==== 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 110: Ligne 108:
  
 === Arguments === === Arguments ===
-  - visible - (boolean) the window'visible status+  - visible - (boolean) le statut visible de la fenêtre
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== close ==== ==== close ====
-Closes the window.+Ferme la fenêtre.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.close(); myObject.close();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== 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'visible status.+Renvoi le statut visible de la fenêtre.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.visible(); myObject.visible();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (boolean) the window'visible status+  * (boolean) le statut visible de la fenêtre
  
 ==== showAlphaChannel ==== ==== showAlphaChannel ====
-Sets if the alpha channel should be visible.+Définit si le canal alpha doit être visible.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.showAlphaChannel(showAlphaChannel); myObject.showAlphaChannel(showAlphaChannel);
Ligne 190: Ligne 188:
  
 === Arguments === === Arguments ===
-  - showAlphaChannel - (boolean) the alpha channel visibility status+  - showAlphaChannel - (boolean) le statut de visibilité du canal alpha
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== setColor ==== ==== setColor ====
-Sets the current color.+Définit la couleur actuelle.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.setColor(color); myObject.setColor(color);
Ligne 204: Ligne 202:
  
 === Arguments === === Arguments ===
-  - color - ([[en:code:core:color|Color]]) the current color+  - color - ([[en:code:core:color|Color]]) la couleur actuelle
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== show ==== ==== show ====
-Show the window. (non-blocking+Montre la fenêtre. (non bloquant
-Use the [[#onclosed|OnClosed]] event to know when the window has been closed.+Utilise l'évènement [[#onclosed|OnClosed]] pour savoir quand la fenêtre a été fermé.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.show(); myObject.show();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * (ColorDialog) this ColorDialog+  * (ColorDialog) ce "ColorDialog"
  
 ==== showModal ==== ==== showModal ====
-Show the window. (blocking)+Montre 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é)
  
 ==== color ==== ==== color ====
-Returns the current color.+Renvoi la couleur actuelle.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.color(); myObject.color();
 </code> </code>
  
-=== Returns === +=== Renvoi === 
-  * ([[en:code:core:color|Color]]) the current color+  * ([[en:code:core:color|Color]]) la couleur actuelle
  
-===== Events =====+===== Évè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 254: Ligne 252:
  
 === 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 268: Ligne 266:
  
 ==== onColorSelected ==== ==== onColorSelected ====
-Called when color has been selected.+Appelé quand une couleur été sélectionnée.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.onColorSelected = function(color) {}; myObject.onColorSelected = function(color) {};
Ligne 276: Ligne 274:
  
 === Arguments === === Arguments ===
-  - color - ([[en:code:core:color|Color]]) the selected color+  - color - ([[en:code:core:color|Color]]) la couleur sélectionnée
  
 === Example === === Example ===
Ligne 287: Ligne 285:
  
 ==== onColorChanged ==== ==== onColorChanged ====
-Called when the current color has been changed.+Appelé quand la couleur actuelle a été changé.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 myObject.onColorChanged = function(color) {}; myObject.onColorChanged = function(color) {};
Ligne 295: Ligne 293:
  
 === Arguments === === Arguments ===
-  - color - ([[en:code:core:color|Color]]) the current color+  - color - ([[en:code:core:color|Color]]) la couleur actuelle
  
 === Example === === Example ===
Ligne 308: Ligne 306:
  
 ==== 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)
fr/code/windows/colordialog.1335276974.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)