Displays a Bubble ToolTip at the specified location.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub ShowBubbleTooltipAt( _
ByVal pointX As System.Integer, _
ByVal pointY As System.Integer, _
ByVal arrowPos As System.Integer, _
ByVal titleString As System.String, _
ByVal messageString As System.String, _
ByVal urlLoc As System.String _
) |
Visual Basic (Usage) | |
---|
Dim instance As ISwHtmlInterface
Dim pointX As System.Integer
Dim pointY As System.Integer
Dim arrowPos As System.Integer
Dim titleString As System.String
Dim messageString As System.String
Dim urlLoc As System.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: Substitute the path and filename of your HTML file for "path_filename".
'
' 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 = "path_filename"
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