Table of Contents

TTMSFNCHint Class

Drop-in hint component that replaces the default tooltip window with a fully styled, customizable hint using fill, stroke, font, and bitmap settings.

API unit family: TMSFNCHint Inherits from: TTMSFNCCustomHint

Syntax

TTMSFNCHint = class(TTMSFNCCustomHint)

Properties

Name Description
BitmapContainer Optional bitmap container used to resolve named bitmaps referenced in HTML-formatted hints. (inherited from TTMSFNCCustomHint)
Fill Background fill style of the hint window. (inherited from TTMSFNCCustomHint)
Font Text font used to render the hint content. (inherited from TTMSFNCCustomHint)
Shadow When True, a drop shadow is rendered behind the hint window. (inherited from TTMSFNCCustomHint)
Stroke Border stroke style of the hint window. (inherited from TTMSFNCCustomHint)

Methods

Name Description
Calculate Calculates and returns the bounding rectangle required to display the given hint text. (inherited from TTMSFNCCustomHint)
HideHint Hides the currently visible hint window.
IsShowing Returns True when a hint window is currently visible.
ShowHintAt Displays the hint window at the specified screen position.

Events

Name Description
OnAfterDrawHint Fired after the hint window has been drawn. (inherited from TTMSFNCCustomHint)
OnBeforeDrawHint Fired before the hint window is drawn, allowing custom painting or suppression of the default appearance. (inherited from TTMSFNCCustomHint)
OnCalculateHintRect Fired to allow custom calculation of the hint bounding rectangle. (inherited from TTMSFNCCustomHint)