class chooseColorDialog

superclass(es) object
subclass(es) -
description The chooseColorDialog class implements a standard "Select Color" dialog.

tasks

The method execute/2 can be used to show the "Select Color" dialog, after the dialog has been closed the selected color can be retrieved with color/3.

methods

color(Red, Green, Blue)

func Get the selected color for the font. The red, green and blue values of the color choosen are returned.
pre TRUE.
post The red, green and blue values of the color are assigned to the variables Red, Green and Blue.

putColor(Red, Green, Blue)

func Set the color with the specified red, green and blue values.
pre The variables Red, Green and Clue must contain integer values.
post The name of the selected font was assigned to Output.

execute(Parent, Output)

func Show the "Select Color" dialog.
pre The Parent variable must refer to a window.
post If the dialog was closed by pressing on the "OK" button then true is assigned to Output, else false is assigned to Output.