SftButton/OCX 2.5

SftButton.Bounce Property

Softel vdm, Inc.

Defines the control's visual response to a mouse click.

Syntax       

Get

VB.NET

Style = object.Bounce  As SftButtonBounceStyleConstants

VB

Style = object.Bounce  As SftButtonBounceStyleConstants

C#.NET

SftButtonBounceStyleConstants Style = object.Bounce;

VC++

enum SftButtonBounceStyleConstants Style = object->Bounce;
enum SftButtonBounceStyleConstants Style = object->GetBounce();

C

HRESULT object->get_Bounce(enum SftButtonBounceStyleConstants* Style);

Delphi

Style := object.Bounce  : TOleEnum;

Put

VB.NET

object.Bounce = Style  As SftButtonBounceStyleConstants

VB

object.Bounce = Style  As SftButtonBounceStyleConstants

C#.NET

SftButtonBounceStyleConstants object.Bounce = Style;

VC++

enum SftButtonBounceStyleConstants object->Bounce = Style;
void object->PutBounce(enum SftButtonBounceStyleConstants Style);

C

HRESULT object->put_Bounce(enum SftButtonBounceStyleConstants Style);

Delphi

object.Bounce := Style  : TOleEnum;

object

A SftButton object.

Style

Defines the control's visual response to a mouse click.

Name

Value

Description

bounceSftButtonDefault

0

Default - If Windows themes are in effect, bounceSftButtonNo applies. Otherwise, without Windows themes, bounceSftButtonYes applies.

bounceSftButtonYes

1

Yes - The control reflects the mouse click by painting the control contents offset by one pixel while the mouse button is pressed.

bounceSftButtonNo

2

No - A mouse click does not cause the control contents to be repainted.

Comments

The Bounce property defines the control's visual response to a mouse click.

The graphics components also reflect mouse clicks using the Image1Pressed and Image2Pressed properties (if defined).

The Bounce property does not apply to the drop down button.


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