Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxDropDown.Style Property

Defines the preferred location of the drop down portion.

Syntax

Get

VB.NETStyle = object.Style As SftBoxDropDownStyleConstants
VBStyle = object.Style As SftBoxDropDownStyleConstants
C#.NETSftBoxDropDownStyleConstants Style = object.Style;
VC++enum SftBoxDropDownStyleConstants Style = object->Style;
enum SftBoxDropDownStyleConstants Style = object->GetStyle();
CHRESULT object->get_Style(enum SftBoxDropDownStyleConstants* Style);

Put

VB.NETobject.Style = Style As SftBoxDropDownStyleConstants
VBobject.Style = Style As SftBoxDropDownStyleConstants
C#.NETSftBoxDropDownStyleConstants object.Style = Style;
VC++enum SftBoxDropDownStyleConstants object->Style = Style;
void object->PutStyle(enum SftBoxDropDownStyleConstants Style);
CHRESULT object->put_Style(enum SftBoxDropDownStyleConstants Style);

object

A SftBoxDropDown object.

Style

Defines the preferred location of the drop down portion.

StyleValueDescription
ddStyleSftBoxBelow0The drop down portion is displayed below the static portion or edit control portion if possible.
ddStyleSftBoxAbove1The 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.

See Also SftBoxDropDown Object | Object Hierarchy


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