Top 10 Reasons to Buy hTooltip

This page lists the main features and unique tools provided by the hTooltip component.

1. Full control over tooltip

hTooltip allows you to control practically each aspect of a tooltip you generally need in your apps:

  • the text color and background color;
  • the length of time before the tooltip window appears and how long it remains visible;
  • the style - standard rectangular or modern balloon;
  • you can add a title and display one of the predefined system icons in the tooltip;
  • the internal margins inside the tooltip window;
  • you can specify the maximum width of the tooltip window and the tooltip text will be wrapped automatically;
  • the ability to display tooltips in inactive windows.

2. Multi-line tooltip text with tab stops

You can set multiline text and use tab stops inside the hTooltip tooltips:

Tab stops in native tooltips

3. OS visual style and effects

The tooltips created with hTooltip automatically use the the fade or slide effects available in the OS. The hTooltip tooltips are also rendered with Windows 7 or Windows 10 visual styles if they are available in your app.

4. On-demand tooltips

hTooltip provides you with the ability to display a tooltip on demand. You display such a display-on-demand tooltip when you need it and at the specified location on your form:

Display a tooltip on-demand

5. Tracking tooltips

The ability to display a tooltip on demand can be also used to implement so called tracking tooltips, when the tooltip tracks the mouse pointer movement and changes its text accordingly:

On-demand tracking tooltip sample

6. Real native Windows tooltips for Visual Basic controls

hTooltip allows you to create a real native Windows tooltip for any intrinsic Visual Basic control in one statement with the CreateForVBCtrl method, for instance:

objTooltip.CreateForVBCtrl Label1

You can even create a tooltip for a particular rectangular part inside a control, not for the entire control using the CreateForRect method:

objTT.CreateForRect Picture1.hWnd, 0, 0, 90, 90

7. Tooltips for VB windowless controls (Label, Shape and Image)

Notice that hTooltip allows you to create tooltips for ALL Visual Basic controls, even for those which do not have its own WinAPI window handle. They are also known as windowless controls, and these are the Label, Shape and Image controls.

8. MouseEnter/MouseLeave events

When you attach the hTooltip tooltip object to a control, the tooltip object raises the MouseEnter and MouseLeave events when the mouse pointer enters and leaves the area occupied by the control. These events are generated properly when the control is overlapped by another control or a window. You will recieve these events even if the tooltip window is never displayed!

See how these events are used to highlight the label under the mouse pointer and log the corresponding message when the pointer enters a label and then leave it:

MouseEnter and MouseLeave events for tooltips

Just imagine how you would implement this task using only the standard events like MouseMove! With hTooltip, we simply change the backcolor of the label under the pointer in the MouseEnter event and reset it to the default value in MouseLeave.

9. Speed up coding with tooltip patterns

You can significantly simplify your work when you create a large number of tooltips in your code with tooltip patterns. hTooltip allows you to define a tooltip pattern that stores common properties of the tooltip you are going to create, and then simply initialize your tooltips in one statement with the tooltip pattern.

In Visual basic you can also use the global DefaultTooltip object for this purpose. This object stores the default properties of all tooltips you will create and it becomes accessible in your code without preliminary declaration when you set the reference to the hTooltip library in your project.

10. Available in VBA/UserForms in MS Office, .NET, Visual FoxPro, ...

And finally, the hTooltip DLL is an ActiveX DLL that implements COM objects. It allows you to use this library not only in Visual Basic 6, you can also use it in many development environments which support COM, such as Visual Basic for Applications (VBA) in MS Office, the .NET Framework, Visual FoxPro, Delphi and others.

View tooltip code samples »