ImageEn, unit iexRichEdit

TIERichEdit.PromptForFont

TIERichEdit.PromptForFont


Declaration

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


Description

Displays the Font dialog selector at the specified position, allowing the user to select a font for 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: IEPromptForFont


Example

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