Hide Table of Contents
HideBubbleTooltip Method (ISldWorks)

Hides the bubble ToolTip displayed by ISldWorks::ShowBubbleTooltipAt2.

.NET Syntax

Visual Basic (Declaration) 
Sub HideBubbleTooltip() 
Visual Basic (Usage) 
Dim instance As ISldWorks
 
instance.HideBubbleTooltip()
C# 
void HideBubbleTooltip()
C++/CLI 
void HideBubbleTooltip(); 

Example

The following examples show how to display and hide a bubble ToolTip. Click a link to jump to the example in that programming language.

 

C#

//--------------------------------------------

// Preconditions: SolidWorks is running. 

// Postconditions:

// (1) Bubble ToolTip is shown.

// (2) Bubble ToolTip is hidden.  

//--------------------------------------------

using SolidWorks.Interop.sldworks;

using SolidWorks.Interop.swconst;

using System;

namespace ShowBubbleToolTipAt2SldWorksCSharp.csproj

{

    public partial class SolidWorksMacro

    {

        public void Main()

        {

           // Show bubble ToolTip

           swApp.ShowBubbleTooltipAt2(300, 400, (int)swArrowPosition.swArrowLeftTop, "Sample Bubble Tooltip", "Message of Sample Bubble ToolTip", (int)swBitMaps.swBitMapUserDefined, "C:\\Program Files\\SolidWorks Corp\\SolidWorks\\data\\user macro icons\\questionmark.bmp", "", 0, (int)swLinkString.swLinkStringNone, "", "");

 

        // 1. Insert a breakpoint at next command.

        // 2. Examine the SolidWorks graphics area to see the bubble ToolTip.

        // 3. Toggle the breakpoint to hide the bubble ToolTip.

        swApp.HideBubbleTooltip();

        }

        /// <summary>

        /// The SldWorks swApp variable is pre-assigned for you.

        /// </summary>

        public SldWorks swApp;

    }

}

 

 

VB.NET

'--------------------------------------------

' Preconditions: SolidWorks is running.

' Postconditions:

'   (1) Bubble ToolTip is shown.

'   (2) Bubble ToolTip is hidden.

'--------------------------------------------

Imports SolidWorks.Interop.sldworks

Imports SolidWorks.Interop.swconst

Imports System

Partial Class SolidWorksMacro

Public Sub main()

    ' Show bubble ToolTip

    swApp.ShowBubbleTooltipAt2(300, 400, swArrowPosition.swArrowLeftTop, "Sample Bubble Tooltip", "Message of Sample Bubble ToolTip", swBitMaps.swBitMapUserDefined, "C:\Program Files\SolidWorks Corp\SolidWorks\data\user macro icons\questionmark.bmp", "", 0, swLinkString.swLinkStringNone, "", "")

 

    Stop

 

    swApp.HideBubbleTooltip()

 

End Sub

    ''' <summary>

    ''' The SldWorks swApp variable is pre-assigned for you.

    ''' </summary>

    Public swApp As SldWorks

End Class

 

 

VBA

'--------------------------------------------
' Preconditions: SolidWorks is running
'
' Postconditions:

'       (1) Bubble ToolTip is shown.

'       (2) Bubble ToolTip is hidden.
'--------------------------------------------

Option Explicit
 
Sub main()

   
    Dim swApp As SldWorks.SldWorks
    Set swApp = Application.SldWorks

 

    ' Show Bubble ToolTip
    swApp.ShowBubbleTooltipAt2 300, 400, swArrowLeftTop, "Sample Bubble Tooltip", "Message of Sample Bubble ToolTip", swBitMapUserDefined, "C:\Program Files\SolidWorks Corp\SolidWorks\data\user macro icons\questionmark.bmp", "", 0, swLinkStringNone, "", ""   

 

    Stop
   
    swApp.HideBubbleTooltip

    
 

    End Sub

'--------------------------------------------

 

See Also

Availability

SolidWorks 2010 FCS, Revision Number 18.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   HideBubbleTooltip Method (ISldWorks)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.