Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxDropDown.WidthPix Property

Defines the width of the drop down portion in pixels.

Syntax

Get

VB.NETWPix = object.WidthPix As Integer
VBWPix = object.WidthPix As Long
C#.NETint WPix = object.WidthPix;
VC++long WPix = object->WidthPix;
long WPix = object->GetWidthPix();
CHRESULT object->get_WidthPix(long* WPix);

Put

VB.NETobject.WidthPix = WPix As Integer
VBobject.WidthPix = WPix As Long
C#.NETint object.WidthPix = WPix;
VC++long object->WidthPix = WPix;
void object->PutWidthPix(long WPix);
CHRESULT object->put_WidthPix(long WPix);

object

A SftBoxDropDown object.

WPix

Defines the width of the drop down portion. The units used are pixels. If 0 is used, the drop down portion has the same width as the combo box client area.

Comments

The WidthPix property defines the width of the drop down portion in pixels.

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

The width defined using WidthPix 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 WidthPix property is set, the DropDown.WidthPercent property is set to 0.

The WidthPix 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.