DzColorDialog Class Reference
[Interface Dialog Objects]

DAZ Script object for displaying the color picker dialog. More...

List of all members.

Methods

Color customColor (Number i)
Number customCount ()
Color getColor (Color initial=Qt::white)
void setCustomColor (Number i, Color c)
void setStandardColor (Number i, Color c)


Detailed Description

DAZ Script object for displaying the color picker dialog.

The DzColorDialog class is available in DAZ Script via the ColorDialog global variable. It provides a function to display an OS native color picker to the user - simply call the function as shown in the following example:

Example - Have the user select a color :

    var color = ColorDialog.getColor();

Other functions are provided for getting and setting the pre-set colors listed in the picker - see the rest of the documentation for details.


Member Function Documentation

Color DzColorDialog::customColor ( Number  i  ) 

Returns:
The i'th custom color in the color picker

Number DzColorDialog::customCount (  ) 

Returns:
The number of custom colors in the color picker

Color DzColorDialog::getColor ( Color  initial = Qt::white  ) 

Shows a color picker dialog to the user.

Parameters:
initial The color that the dialog will start with.
Returns:
The color selected by the user

void DzColorDialog::setCustomColor ( Number  i,
Color  c 
)

Set the i'th custom color in the color picker

void DzColorDialog::setStandardColor ( Number  i,
Color  c 
)

Set the i'th standard color in the color picker


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.