ImageEn, unit ImageEnView

TImageEnView.EnableHoverHint

TImageEnView.EnableHoverHint

Declaration

property EnableHoverHint: TIEHoverHint;

Description

If specified, a hover hint is displayed to the user when moving over the image to show the position, color, etc.

Note:
◼The hover hint is only shown when an interactive hint is not relevant
◼The font for the hint is specified by DefaultDialogFont
◼The styling of hints is specified by HintStyle

Default: iehhNone

Examples

// Show the cursor position when hovering over the image, e.g. 'XY: 123,456'
ImageEnView1.EnableHoverHint := iehhPosition;

// Show the position and color under the cursor, e.g. 'XY: 123,456 - RGB: 255,23,111'
ImageEnView1.EnableHoverHint := iehhRGB;


// Show the position, color and alpha under the cursor, e.g. 'XY: 123,456 - RGB: 255,23,111 - Alpha: 255'
ImageEnView1.EnableHoverHint := iehhRGBA;

// Show the alpha value under the cursor, e.g. 'XY: 123,456 - Alpha: 255'
ImageEnView1.EnableHoverHint := iehhAlpha;

// Our TImageEnView is only showing the alpha channel (IEBitmap.AlphaChannel), so treat the "color" as an alpha value, e.g. 'XY: 123,456 - Alpha: 255'
ImageEnView1.EnableHoverHint := iehhTreatAsAlpha;

// Disable all hover hints
ImageEnView1.EnableInteractionHints := False;
ImageEnView1.EnableHoverHint := iehhNone;