Based on the idea of Ian Hinson.
Copyright© Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.
If you are looking for an easy way to use Windows balloon tooltips instead of Delphi hints in your applications, TToolTipManager is what you need. TToolTipManager lets you customize tooltips for every single Delphi windowed control. Each tooltip can have its own appearence options:
Besides that you can apply some global options for tooltips, including delay times and tooltips shape.
Note 1: Shadow and icon of tooltips appear if the application has an XP manifest.
Note 2: Custom icons are only available to Microsoft Windows XP Service Pack 2 (SP2) and later.
Note 3: Setting background and text color of tooltips has no effect on Windows Vista.
PROPERTIES
- BalloonTip: Boolean
When set to True, the tooltip has the appearance of a cartoon "balloon," with rounded corners and a stem pointing to the control.- CenterTip: Boolean
When set to True, the tooltip window centers below the control.- Enabled: Boolean
Specifies whether the component displays tool tips.
- DefaultColor: TColor
Specifies the default background color of the tooltips.
Note: This property is ignored on Windows Vista.- DefaultTextColor: TColor
Specifies the default text and border color of the tooltips.
Note: This property is ignored on Windows Vista.- DefaultCustomIcon: TColor
Specifies the default icon for tooltips with empty custom icon.
Note: Custom icon is only available to Microsoft Windows XP Service Pack 2 (SP2) and later.- HidePause: DWord
Determines the amount of time (in milliseconds) a tooltip window remains visible if the pointer is stationary within a control's bounding rectangle.- ReshowPause: DWord
Determines the amount of time (in milliseconds) it takes for subsequent tooltip windows to appear as the pointer moves from one control to another.- ShowPause: DWord
Determines the amount of time (in milliseconds) a pointer must remain stationary within a control's bounding rectangle before the tooltip window appears.- ToolTips: TToolTipItems
Collection of TToolTipItem objects. Each TToolTipItem holds tooltip options of a control.- VisibleToolTip: TToolTipItem (Read-only)
Indicates the tooltip that currently is visible.METHODS
- procedure RebuildToolTips;
Causes the component rebuild all tooltips.EVENTS
- OnBeforeShow: TToolTipEvent;
TToolTipEvent = procedure(Sender: TObject; ToolTip: TToolTipItem) of object;
Occurs just before a tooltip window becomes appear. Here is the last place that you can change tooltip's properties before it shows up.- OnShow: TToolTipEvent;
TToolTipEvent = procedure(Sender: TObject; ToolTip: TToolTipItem) of object;
Occurs just before a tooltip window appears.- OnHide: TToolTipEvent;
TToolTipEvent = procedure(Sender: TObject; ToolTip: TToolTipItem) of object;
Occurs just after a tooltip window hides.
PROPERTIES
- Control: TWinControl
Specifies the windowed control that owns the tooltip.- Color: TColor
Specifies the background color of the tooltip. Use clDefault to use the default background color.
Note: This property is ignored on Windows Vista.- TextColor: TColor
Determines the text and border color of the tooltip. Use clDefault to use the default text color.
Note: This property is ignored on Windows Vista.- Title: String
Specifies title of the tooltip window.- Description: String
Determines the text inside the tooltip window.- IconType: TToolTipIcon
TToolTipIcon = (ttiNone, ttiInformation, ttiWarning, ttiError, ttiInformationLarge, ttiWarningLarge, ttiErrorLarge, ttiCustom)
Determines icon that appears on the tooltip window.
Note 1: The icon appears if the application has an XP manifest.
Note 2: ttiCustom is only available to Microsoft Windows XP Service Pack 2 (SP2) and later. In this case, the CustomIcon property determines the icon that should be displayed.- CustomIcon: TIcon
When IconType is ttiCustom, determines the icon that appears in the tooltip window. Clear CustomIcon to use the default custom icon.
Note: Custom icon is only available to Microsoft Windows XP Service Pack 2 (SP2) and later.METHODS
- procedure Refresh;
Redefines tooltip for the control.
TToolTipManager component is freeware. You may copy component's files AS LONG AS YOU COPY ALL OF THEM. If you want to change the source code in order to improve the component's features, performance, etc. please send me the new source code so that I can have a look at it. The changed source code should contain descriptions what you have changed, and of course your name. The only thing you MAY NOT CHANGE is the ORIGINAL COPYRIGHT INFORMATION.
TToolTipManager is provided "AS IS" without any warranty of any kind, either express or implied. The entire risk as to the quality and performance of the software is with you. The author is NOT liable for any DAMAGES resulting from the use and misuse of the component, especially he is NOT liable for DAMAGES that were caused BY ANY VERSION WHICH HAS NOT BEEN PROGRAMMED BY THE AUTHOR HIMSELF.
|
END OF DOCUMENT |