Displays a Bubble ToolTip at the specified location.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As ISwHtmlInterface
Dim pointX As Integer
Dim pointY As Integer
Dim arrowPos As Integer
Dim titleString As String
Dim messageString As String
Dim urlLoc As String
instance.ShowBubbleTooltipAt(pointX, pointY, arrowPos, titleString, messageString, urlLoc)
|
Parameters
- pointX
- x coordinate in pixels relative to upper-left corner of screen
- pointY
- y coordinate in pixels relative to upper-left corner of screen
- arrowPos
- Arrow position as defined in swArrowPosition_e
- titleString
- Title of Bubble ToolTip
- messageString
- Message string of Bubble ToolTip
- urlLoc
- Any valid Windows Internet Explorer file
Example
Visual Basic for Applications (VBA)
This example shows how to display and hide a Bubble ToolTip.
'--------------------------------------------
'
' Preconditions: HTML file exists at the specified location.
'
' Postconditions: Contents of the HTML file are displayed in a Bubble ToolTip,
' and then are hidden from view.
'
'--------------------------------------------
Option Explicit
Sub main()
Const sURLpath As String = "D:/Samples/Sample_QuickTips.html"
Dim pSldWorks As Object
Set pSldWorks = CreateObject("SwHtmlControl.SwHtmlInterface")
' Show Bubble ToolTip
pSldWorks.ShowBubbleTooltipAt 300, 400, swArrowLeftTop, "Sample Bubble ToolTip", "Message of Sample Bubble ToolTip", sURLpath
Stop
' Hide Bubble ToolTip
pSldWorks.HidebubbleTooltip
End Sub
'--------------------------------------------
Example
Remarks
See Also
Availability
SolidWorks 2005 FCS, Revision Number 13.0