XTPToolTipStyle Enumeration
Description
Specifies the style of the tool tip when it is displayed.
Members
-
xtpToolTipStandard
Standard window style. The tool tips window will be in the shape of a rectangle with a solid dark border around it.

-
xtpToolTipBalloon
Balloon window style. The tool tip window will be in the shape of a balloon.

-
xtpToolTipOffice
Office window style. The tool tips window will be in the shape of a rectangle with a dark border on the right and bottom sides and a light border on the top and left sides.

-
xtpToolTipRTF
Rich-Text Format (RTF) window style. The tool tips window will be in the shape of a rectangle with a solid dark border around it. If the text stored in the ToolTip property is in RTF format, the tool tip will be displayed using the RTF formatting. This includes font, font size, color, bullets, etc.
The picture below illustrates an RTF tool tip that includes bold text, colored text, underlined text, a new font, and bullets.

-
xtpToolTipLuna

-
xtpToolTipResource

-
xtpToolTipHTML
This allows you to insert HTML objects such as tables or use HTML formatting such as font, bold, etc. -
xtpToolTipMarkup
See this sample. -
xtpToolTipOffice2013
Tool tips will use the Office 2013 window style. -
xtpToolTipOffice2016
Tool tips will use the Office 2016 window style.
Remarks
By default, the text that is stored in the ToolTip property will be displayed in the tool tip window.
Requirements
The xtpToolTipBalloon XTPToolTipStyle requires Internet Explorer 5.0 or above to be installed. The IsBalloonStyleSupported method can be used to determine if the xtpToolTipBalloon style is supported.
XAML Tooltips
Only controls with a TooltipContext property can use Markup for tooltips. The sample below shows a TabControl that uses Markup tooltip, in this case, the second tab's tooltip is being set. Note that EnableMarkup is not needed to enable Markup for the tooltip. The style of the tooltip must be set to xtpToolTipMarkup. To display both a Markup Tooltip and Markup in the caption on the TabControl tabs, both EnableMarkup and xtpToolTipMarkup are required. The xtpToolTipMarkup style is required to display Markup tooltips for the TabControl (or any other TooltipContext enabled control). Note that the sample used images stored in an ImageManager as the image source.
The sample below will use XAML to create a tooltip for a tab button in a TabControl.

Example
XAML Tooltip (Visual Basic)
This sample shows how to use XAML MarkUp for a ToolTip.
' VB 6 code snippet
TabControl.ToolTipContext.Style = xtpToolTipMarkup
TabControl.Item(1).ToolTip = _
"<BorderBrush='#767676' Background='#e4ecf7'>" & _
"<TextBlock>" & _
" Change Case" & _
"</TextBlock>" & _
"<TextBlock>" & _
" Change all the " & _
"selected text to UPPERCASE, lowercase, or other common capitalizations." & _
"</TextBlock>" & _
"<TextBlock VerticalAlignment='Center' FontWeight='Bold'>" & _
"Press F1 for more help." & _
"</TextBlock>"
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.