Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxDropDown.OptimalWidth Property

Defines whether the drop down portion is optimally sized in width.

Syntax

Get

VB.NETBoolean = object.OptimalWidth As Boolean
VBBoolean = object.OptimalWidth As Boolean
C#.NETbool Boolean = object.OptimalWidth;
VC++VARIANT_BOOL Boolean = object->OptimalWidth;
VARIANT_BOOL Boolean = object->GetOptimalWidth();
CHRESULT object->get_OptimalWidth(VARIANT_BOOL* Boolean);

Put

VB.NETobject.OptimalWidth = Boolean As Boolean
VBobject.OptimalWidth = Boolean As Boolean
C#.NETbool object.OptimalWidth = Boolean;
VC++VARIANT_BOOL object->OptimalWidth = Boolean;
void object->PutOptimalWidth(VARIANT_BOOL Boolean);
CHRESULT object->put_OptimalWidth(VARIANT_BOOL Boolean);

object

A SftBoxDropDown object.

Boolean

Defines whether the drop down portion is optimally sized in width.

BooleanDescription
TrueThe drop down portion is optimally sized in width.
FalseThe drop down portion is not resized.

Comments

The OptimalWidth property defines whether the drop down portion is optimally sized in width.

The OptimalWidth property overrides the DropDown.Width, DropDown.WidthPix and DropDown.WidthPercent properties. When the drop down portion becomes visible, it is optimally sized in width so all data can be displayed without being horizontally clipped. It accomplishes this by displaying as much of the data as possible by using the defined horizontal extent (see Items.HorizontalExtent).

The OptimalWidth property will increase the size of the drop down portion based on its defined width (see DropDown.Width, DropDown.WidthPercent and DropDown.WidthPix) to accommodate as much data as possible, but will not decrease it.

The OptimalWidth property requires the use of the Items.RecalcHorizontalExtent method after all data has been added to determine the horizontal extent.

See Also SftBoxDropDown Object | Object Hierarchy


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