Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxDropDown.Width Property

Defines the width of the drop down portion.

Syntax

Get

VB.NETW = object.Width As Single
VBW = object.Width As Single
C#.NETfloat W = object.Width;
VC++float W = object->Width;
float W = object->GetWidth();
CHRESULT object->get_Width(float* W);

Put

VB.NETobject.Width = W As Single
VBobject.Width = W As Single
C#.NETfloat object.Width = W;
VC++float object->Width = W;
void object->PutWidth(float W);
CHRESULT object->put_Width(float W);

object

A SftBoxDropDown object.

W

Defines the width of the drop down portion. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used. If 0 is used, the drop down portion has the same width as the combo box client area.

Comments

The Width property defines the width of the drop down portion.

The Width and DropDown.WidthPix properties are synonyms, but may use different coordinate systems.

The width defined using Width property is considered a maximum value. The width of the drop down portion may be adjusted (made smaller) so the drop down portion doesn't extend beyond the edge of the screen.

The actual width of the drop down portion can be found using the DropDown.GetPosition method.

The DropDown.WidthPercent property can also be used to define the width. If the DropDown.Width property is set, the DropDown.WidthPercent property is set to 0.

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

This property cannot be used with a simple combo box.

See Also SftBoxDropDown Object | Object Hierarchy


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