Hide Table of Contents
AddTab Method (IPropertyManagerPage2)

Adds a tab to a PropertyManager page.

.NET Syntax

Visual Basic (Declaration) 
Function AddTab( _
   ByVal ID As Integer, _
   ByVal Caption As String, _
   ByVal Bitmap As String, _
   ByVal Options As Integer _
) As PropertyManagerPageTab
Visual Basic (Usage) 
Dim instance As IPropertyManagerPage2
Dim ID As Integer
Dim Caption As String
Dim Bitmap As String
Dim Options As Integer
Dim value As PropertyManagerPageTab
 
value = instance.AddTab(ID, Caption, Bitmap, Options)
C# 
PropertyManagerPageTab AddTab( 
   int ID,
   string Caption,
   string Bitmap,
   int Options
)
C++/CLI 
PropertyManagerPageTab^ AddTab( 
&   int ID,
&   String^ Caption,
&   String^ Bitmap,
&   int Options
) 

Parameters

ID
Identifier defined by the add-in for this tab
Caption
Text for tab
Bitmap
Bitmap for tab
Options
Not used; specify 0

Return Value

Newly created PropertyManager page tab

Remarks

The ID argument provides an add-in with a way of identifying which tab is being handled when one of the callbacks is called; for example, when IPropertyManagerPage2Handler5::OnTabClicked is called. The IDis passed as an argument, identifying the tab clicked.

 

The Bitmap argument allows you to place a bitmap before the text on the tab. The argument is the full path and filename to a bitmap on disk. The bitmap should be 16 x 18 (width x height) pixels. It can be either 16 or 256 colors. Any portions of the bitmap that are RGB(255,255,255) will be transparent, letting the tab background show through. If this argument is an empty string or not the name of a valid bitmap file, no bitmap is placed on the tab.

 

Use this method to add tabs to your PropertyManager page before the page is displayed. It cannot be used if the page is already displayed.

 

Use IPropertyManagerPageTab::Caption to add a caption to the tab.

 

See Also

Availability

SolidWorks 2006 FCS, Revision Number 14.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:   AddTab Method (IPropertyManagerPage2)
*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) 2010 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.