SftBox/OCX 4.5

SftBoxHeaders.ButtonDown Property

Softel vdm, Inc.

Defines the currently pressed header button.

Syntax       

Get

VB.NET

ButtonIndex = object.ButtonDown  As Short

VB

ButtonIndex = object.ButtonDown  As Integer

C#.NET

short ButtonIndex = object.ButtonDown;

VC++

short ButtonIndex = object->ButtonDown;
short ButtonIndex = object->GetButtonDown();

C

HRESULT object->get_ButtonDown(short* ButtonIndex);

Delphi

ButtonIndex := object.ButtonDown   : Smallint;

Put

VB.NET

object.ButtonDown = ButtonIndex  As Short

VB

object.ButtonDown = ButtonIndex  As Integer

C#.NET

short object.ButtonDown = ButtonIndex;

VC++

short object->ButtonDown = ButtonIndex;
void object->PutButtonDown(short ButtonIndex);

C

HRESULT object->put_ButtonDown(short ButtonIndex);

Delphi

object.ButtonDown := ButtonIndex   : Smallint;

object

A SftBoxHeaders object.

ButtonIndex

The zero-based index of the currently pressed column header. -1 if no header button is pressed.

Comments

The ButtonDown property defines the currently pressed header button.

This property can only be used if column headers are defined as buttons (see Headers.Style).

Only one column header button can be pressed at one time.

For header buttons to remain in their pressed position when the user clicks on them, the Header.RemainUp property must be set to False for each header.


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