SftButton/OCX 2.5

SftButton.BorderAlways Property

Softel vdm, Inc.

Defines whether the control border is always displayed.

Syntax       

Get

VB.NET

Boolean = object.BorderAlways  As Boolean

VB

Boolean = object.BorderAlways  As Boolean

C#.NET

bool Boolean = object.BorderAlways;

VC++

VARIANT_BOOL Boolean = object->BorderAlways;
VARIANT_BOOL Boolean = object->GetBorderAlways();

C

HRESULT object->get_BorderAlways(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.BorderAlways   : WordBool;

Put

VB.NET

object.BorderAlways = Boolean  As Boolean

VB

object.BorderAlways = Boolean  As Boolean

C#.NET

bool object.BorderAlways = Boolean;

VC++

VARIANT_BOOL object->BorderAlways = Boolean;
void object->PutBorderAlways(VARIANT_BOOL Boolean);

C

HRESULT object->put_BorderAlways(VARIANT_BOOL Boolean);

Delphi

object.BorderAlways := Boolean   : WordBool;

object

A SftButton object.

Boolean

Defines whether the control border is always displayed.

Boolean

Description

True

The control's border is always displayed.

False

The control's border is only displayed if the control has the input focus or the mouse cursor is located above the control's client area.

Comments

The BorderAlways property defines whether the control border is always displayed.

If the BorderAlways property is set to True, the button control behaves like a standard Windows button control and the border is always displayed.

If the BorderAlways property is set to False, the button's border is not visible, unless the control has the input focus or the mouse cursor is located above the control's client area. This is usually used for controls on tool bars or other modeless windows.

If the ButtonStyle property is set to styleSftButtonNone, this property has no effect and is ignored. The border is never displayed.

The control's border style is defined using the BorderStyle property.

If Windows themes are used, the BorderAlways property has a theme dependent effect. Usually it controls the appearance of the border and results in the entire button being transparent until the mouse cursor moves into the control.


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