ImageEn, unit iexRichEdit

TIERichEdit.PromptForColor

TIERichEdit.PromptForColor


Declaration

function PromptForColor(PosX: Integer = 0; PosY: Integer = 0): Boolean;


Description

Displays a color selector at the specified position, allowing the user to apply a color to the current selection.

You can optionally specify a pop-up location. If it is not specified, the dialog will be centered on the screen.

See also: IEPromptForColor


Example

// Prompt the user to specify a color for the current selection
// Popup at current mouse position
GetCursorPos( pt );
Editor.PromptForColor( pt.X, pt.Y );