display a Maplet application that requests a color - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Examples : Maplets/Examples/GetColor

Maplets[Examples][GetColor] - display a Maplet application that requests a color

Calling Sequence

GetColor(opts)

Parameters

opts

-

equation(s) of the form option=value where option is one of default or title; specify options for the Maplet application

Description

• 

The GetColor() calling sequence displays a color dialog that prompts the user to select a color.  The value returned is an RGB COLOR data structure.  If there is no default color and the user clicks Cancel, an exception is raised.

• 

The GetColor sample Maplet worksheet describes how to write a Maplet application that behaves similarly to this routine by using the Maplets[Elements] package.

• 

The opts argument can contain one or more of the following equations that set Maplet application options.

  

 

  

default = anything

  

This is the default object returned if the user does not select a color. It need not be a valid color definition.

  

 

  

title = string or symbol

  

Specifies the Maplet application title.  By default, the title is Get Color.

Examples

withMaplets[Examples]:

GetColor'title'=Get Color

COLORRGB,0,153,51

(1)

See Also

GetColor Sample Maplet, Maplets[Elements], Maplets[Elements][ColorDialog], Maplets[Examples], Overview of Maplet Applications


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam