Hide

SftButton/OCX 3.0 - Button Control

Display
Print

Image1Pressed Property, SftButton Object

Defines the first graphic when the button is pressed.

Syntax

Get

VB.NETrefImageObj = object.Image1Pressed As SftPictureObject
VBSet refImageObj = object.Image1Pressed As SftPictureObject
C#.NETSftPictureObject refImageObj = object.Image1Pressed;
VC++ISftPictureObject* refImageObj = object->Image1Pressed;
ISftPictureObject* refImageObj = object->GetImage1Pressed();
CHRESULT object->get_Image1Pressed(ISftPictureObject** refImageObj);

Put

VB.NETobject.Image1Pressed = refImageObj As SftPictureObject
VBobject.Image1Pressed = refImageObj As SftPictureObject
C#.NETSftPictureObject object.Image1Pressed = refImageObj;
VC++ISftPictureObject* object->Image1Pressed = refImageObj;
void object->PutImage1Pressed(ISftPictureObject* refImageObj);
CHRESULT object->put_Image1Pressed(ISftPictureObject* refImageObj);

object

A SftButton object.

refImageObj

Defines the first graphic when the button is pressed.

Comments

The Image1Pressed property defines the first graphic when the button is pressed.

The Image1Pressed property is only used if the Image1 property defines a valid picture and the button is pressed (see Pressed property).

Examples

VB6

Private Sub CloseButton_Click()
    End
End Sub

Private Sub Form_Load()
    With SftButton2
        ' you could set these at design time using the property pages
        Set .Image1Pressed.Picture = PictureOn.Picture
        Set .Image1.Picture = PictureOff.Picture
    End With
End Sub

Private Sub ChangePicture_SftButton3()
    ' Change the pictures based on the button's Pressed status
    With SftButton3
        If .Pressed Then

See Also SftButton Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.