SftBox/OCX 4.5

SftBoxDropDown.Style Property

Softel vdm, Inc.

Defines the preferred location of the drop down portion.

Syntax       

Get

VB.NET

Style = object.Style  As SftBoxDropDownStyleConstants

VB

Style = object.Style  As SftBoxDropDownStyleConstants

C#.NET

SftBoxDropDownStyleConstants Style = object.Style;

VC++

enum SftBoxDropDownStyleConstants Style = object->Style;
enum SftBoxDropDownStyleConstants Style = object->GetStyle();

C

HRESULT object->get_Style(enum SftBoxDropDownStyleConstants* Style);

Delphi

Style := object.Style  : TOleEnum;

Put

VB.NET

object.Style = Style  As SftBoxDropDownStyleConstants

VB

object.Style = Style  As SftBoxDropDownStyleConstants

C#.NET

SftBoxDropDownStyleConstants object.Style = Style;

VC++

enum SftBoxDropDownStyleConstants object->Style = Style;
void object->PutStyle(enum SftBoxDropDownStyleConstants Style);

C

HRESULT object->put_Style(enum SftBoxDropDownStyleConstants Style);

Delphi

object.Style := Style  : TOleEnum;

object

A SftBoxDropDown object.

Style

Defines the preferred location of the drop down portion.

Style

Value

Description

ddStyleSftBoxBelow

0

The drop down portion is displayed below the static portion or edit control portion if possible.

ddStyleSftBoxAbove 

1

The drop down portion is displayed above the static portion or edit control portion if possible.

Comments

The Style property defines the preferred location of the drop down portion.

If the drop down portion doesn't fit in the position defined using this property, the combo box displays the drop down portion on the opposite side. If the drop down portion would be displayed clipped, because it extends beyond the edge of the screen, it is displayed in the location that can accommodate more or the entire drop down portion. The Style property always returns the defined location, which is not necessarily the same as the actual location.

DropDown.GetPosition can be used to retrieve the coordinates of the drop down portion.

The Style property must be set before the drop down portion becomes visible.

This property has no effect on a simple combo box.


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