Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## color

Arguments: hotspot-or-text-edit-pane

Hotspot: when the argument is a `hotspot`, returns (or sets with setf) the color in which to draw a hotspot.

Text-edit-pane: for a `text-edit-pane`, color returns two values: (1) an rgb object for the color of the first character in the selected range of text-edit-pane (or the character at the cursor), and (2) true if and only if the whole selection is the same color.

Again, for a `text-edit-pane`, (setf color) sets the color of the selected range of the argument text-edit-pane to new-value, which should be an rgb object (see make-rgb).

A text-edit-pane argument must be an instance of a `text-edit-pane` (which is a superclass of `rich-edit-pane`). It cannot be a `text-edit-window` or a `rich-edit` control (apply window to a `rich-edit` control to get a value suitable as an argument to this function).

See cg-rich-text.htm for information about rich text editing in Common Graphics.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version