SftButton/OCX 2.5

SftButton.Picture2 Property

Softel vdm, Inc.

Defines the second graphic.

Deprecated - Provided for compatibility with earlier versions only - Use the Image2 property instead

Syntax       

Get

VB.NET

refPictureObj = object.Picture2  As System.Drawing.ImageLanguage-specific information

VB

Set refPictureObj = object.Picture2  As IPictureDisp

C#.NET

System.Drawing.ImageLanguage-specific information refPictureObj = object.Picture2;

VC++

IPictureDisp* refPictureObj = object->GetPicture2();

C

HRESULT object->get_Picture2(IPictureDisp** refPictureObj);

Delphi

refPictureObj := object.Picture2  : TPictureLanguage-specific information;

Put

VB.NET

object.let_Picture2(ByVal refPictureObj As System.Drawing.ImageLanguage-specific information)

VB

object.Picture2 = refPictureObj  As IPictureDisp

C#.NET

void object.let_Picture2(System.Drawing.ImageLanguage-specific information refPictureObj);

VC++

void object->PutPicture2(IPictureDisp* refPictureObj);

C

HRESULT object->put_Picture2(IPictureDisp* refPictureObj);

Delphi

procedure object._Set_Picture2(refPictureObj : TPictureLanguage-specific information);

PutRef

VB.NET

object.Picture2 = refPictureObj  As System.Drawing.ImageLanguage-specific information

VB

Set object.Picture2 = refPictureObj  As IPictureDisp

C#.NET

System.Drawing.ImageLanguage-specific information object.Picture2 = refPictureObj;

VC++

void object->PutRefPicture2(IPictureDisp* refPictureObj);

C

HRESULT object->putref_Picture2(IPictureDisp* refPictureObj);

Delphi

object.Picture2 := refPictureObj  : TPictureLanguage-specific information;

object

A SftButton object.

refPictureObj

Defines the second graphic. Bitmaps, icons and metafiles are supported. For information about picture properties, please visit the applicable section "Using SftButton/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - Use the Image2 property instead

The Picture2 property defines the second graphic.

If the Picture object describes a bitmap, the picture uses Bitmap Transparency and the bitmap is drawn in a grayed fashion if the control is disabled (see Enabled property).

The layout of the button label and the position and alignment of the first picture component are defined using the Orientation, Image1AlignHorz and Image1AlignVert properties.

For detailed information on the use of the Orientation, Image1, Image1AlignHorz, Image1AlignVert, Image2, Image2AlignHorz, Image2AlignVert, Text, TextAlignHorz, TextAlignVert properties, please see "Button Label".

Using PutRef (see Syntax above) the control will use the reference to the Picture object. If the Picture object is later changed, this will also affect the image used by the control. Using Put instead causes the control to create a copy of the Picture object. If the Picture object is later changed, this will not affect the image used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com