Hide Table of Contents
SetBitmapByName Method (IPropertyManagerPageBitmap)

Sets the bitmap for this control.

.NET Syntax

Visual Basic (Declaration) 
Function SetBitmapByName( _
   ByVal ColorBitmap As System.String, _
   ByVal MaskBitmap As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPageBitmap
Dim ColorBitmap As System.String
Dim MaskBitmap As System.String
Dim value As System.Boolean
 
value = instance.SetBitmapByName(ColorBitmap, MaskBitmap)
C# 
System.bool SetBitmapByName( 
   System.string ColorBitmap,
   System.string MaskBitmap
)
C++/CLI 
System.bool SetBitmapByName( 
&   System.String^ ColorBitmap,
&   System.String^ MaskBitmap
) 

Parameters

ColorBitmap
Full path and filename of the bitmap on disk
MaskBitmap
Full path and filename of the alpha mask bitmap on disk

Return Value

True if the bitmap is set for this control, false if not

Remarks

The typical image format for the two SolidWorks bitmaps is 18 x 18 pixels x 256 colors. Using this method, you can specify a bigger bitmap, e.g., 24 x 24 pixels, to get extra detail. The pixels in MaskBitmap specify transparency through shades of grey with boundaries of black pixels = 100% opaque and white pixels = 100% transparent.

 

Use IPropertyManagerPageControl::Top to set the top of the control and use IPropertyManagerPageControl::Tip to set the ToolTip.

 

You can use this method before, during, or after the PropertyManager page is displayed or closed. If you use this method when the PropertyManager page is displayed, use bitmaps that are the same size.

 

See Also

Availability

SolidWorks 2007 FCS, Revision Number 15.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:   SetBitmapByName Method (IPropertyManagerPageBitmap)
*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) 2014 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.