All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

prompt-for-color Function

Summary

Presents a dialog box allowing the user to choose a color.

Package

capi

Signature

prompt-for-color message &key color colors owner => result, successp

Arguments
message
A string.
color
A color specification.
colors
A list.
owner
An owner window.
Values
result
A color specification, or nil.
successp
A boolean.
Description

The function prompt-for-color pops up a dialog box allowing the user to choose a color.

message supplies a title for the dialog on GTK+ and Motif. On Microsoft Windows message is ignored.

color provides the default color in the dialog.

colors is a list of custom color specifications that the user can choose from.

owner specifies an owner window for the dialog. See 10 Dialogs: Prompting for Input for details.

Notes

For a description of color specifications, see 15.1 Color specs.

See also

10 Dialogs: Prompting for Input


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:42