This object represents a window allowing the user to choose a color.
Constructor function.
var myObject = new ColorDialog();
var myObject = new ColorDialog(parameters);
var myObject = new ColorDialog();
var myObject = new ColorDialog({ title: "My title", opacity: 0.5 });
Sets the window's title.
myObject.setTitle(title);
Sets the window's position.
myObject.setPosition(point);
Sets the window's opacity.
myObject.setOpacity(opacity);
Sets the window's enabled status.
myObject.setEnabled(enabled);
Sets the window's visible status.
myObject.setVisible(visible);
Closes the window.
myObject.close();
Returns the window's title.
myObject.title();
Returns the window's position.
myObject.position();
Returns the window's opacity.
myObject.opacity();
Returns the window's enabled status.
myObject.enabled();
Returns the window's visible status.
myObject.visible();
Sets if the alpha channel should be visible.
myObject.showAlphaChannel(showAlphaChannel);
Sets the current color.
myObject.setColor(color);
Show the window. (non-blocking) Use the OnClosed event to know when the window has been closed.
myObject.show();
Show the window. (blocking)
myObject.showModal();
Returns the current color.
myObject.color();
Called when the window is closed.
myObject.onClosed = function(result) {};
myObject.onClosed = function(result) { if(result) { //Event action } };
Called when a color has been selected.
myObject.onColorSelected = function(color) {};
myObject.onColorSelected = function(color) { //Event action };
Called when the current color has been changed.
myObject.onColorChanged = function(color) {};
myObject.onColorChanged = function(color) { //Event action };
The window's title. (string)
The window's position. (Point)
The window's opacity. (float)
The window's enabled status. (boolean)
The window's visible status. (boolean)