Tool tips API Wrapper 11.III.13
DescriptionUnit ToolTips.pas contains several classes wrapping ToolTips API. These classes allow to manage the tool tips easily. There are different types of tool tips in Windows. They are tool tips for rectangular areas, tracking tool tips, multiline tool tips, balloon tool tips and in-place tool tips. ToolTips.pas implements TStandardToolTipControl, TTrackingToolTipControl, TMultilineToolTipControl, TBalloonToolTipControl and TInPlaceToolTipControl classes for dealing with every of the tool tips type. You can use all the types of tool tips in the same application.
The base class TToolTipControl encapsulates ToolTips API calls and provides common methods, properties and events for tool tips. Because THintWindow or even TWinControl is too heavy to use for tool tips, TToolTipControl is descendant class of TToolTipWindow - lightweight window control class for the tool tips usage.
To make a tool tip for a control you must create instance of TToolTip class and then call Add method of one of the descendant of TToolTipControl class with created instance passed into. To change default behavior of created tool tip you can adjust its properties and assign events handlers. See demo included for details.
- Status: Fully functional
- Source: FW
- Size: 20 115kB
- Delphi 7