IsBalloonStyleSupported Method
Description
The IsBalloonStyleSupported method determines whether the balloon tool tip style is supported.
Syntax
Public Function IsBalloonStyleSupported() As Boolean
Return Type
Returns True if the balloon tool tip style is supported. Returns False if the balloon tool tip is not supported.
Remarks
Balloon tips require that Internet Explorer 5.0 or greater be installed. IsBalloonStyleSupported will return False if Internet Explorer 5.0 or greater is not installed.
The ShowTitleAndDescription method also requires Internet Explorer 5.0 or greater to be installed, so the IsBalloonStyleSupported method can be used to check if the ShowTitleAndDescription method can be used as well.
Example
How to Determine if Balloon Tool Tips are Supported (Visual Basic)
This sample illustrates how to determine if Balloon tool tips are supported.
If Not CommandBars.ToolTipContext.IsBalloonStyleSupported Then
'Requires Internet Explorer 5.0 or Above
CommandBars.ToolTipContext.ShowTitleAndDescription False, xtpToolTipIconNone
CommandBars.ToolTipContext.Style = xtpToolTipStandard
Else
CommandBars.ToolTipContext.ShowTitleAndDescription True, xtpToolTipIconInfo
CommandBars.ToolTipContext.Style = xtpToolTipBalloon
End If
How to Determine if Balloon Tool Tips are Supported (C#)
This sample illustrates how to determine if Balloon tool tips are supported.
if (!CommandBars.ToolTipContext.IsBalloonStyleSupported())
{
//Requires Internet Explorer 5.0 or Above
CommandBars.ToolTipContext.ShowTitleAndDescription(false, XtremeCommandBars.XTPToolTipIcon.xtpToolTipIconNone);
CommandBars.ToolTipContext.Style = XtremeCommandBars.XTPToolTipStyle.xtpToolTipStandard;
}
else
{
CommandBars.ToolTipContext.ShowTitleAndDescription(true, XtremeCommandBars.XTPToolTipIcon.xtpToolTipIconInfo);
CommandBars.ToolTipContext.Style = XtremeCommandBars.XTPToolTipStyle.xtpToolTipBalloon;
}
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.