|
|
|
SftBoxDropDown.WidthPix Property |
Defines the width of the drop down portion in pixels.
Syntax
VB.NET |
WPix = object.WidthPix As Integer |
||
VB |
WPix = object.WidthPix As Long |
||
C#.NET |
int WPix = object.WidthPix; |
||
VC++ |
long WPix = object->WidthPix;
|
||
C |
HRESULT object->get_WidthPix(long* WPix); |
||
Delphi |
WPix := object.WidthPix : Integer; |
||
VB.NET |
object.WidthPix = WPix As Integer |
||
VB |
object.WidthPix = WPix As Long |
||
C#.NET |
int object.WidthPix = WPix; |
||
VC++ |
long object->WidthPix = WPix;
|
||
C |
HRESULT object->put_WidthPix(long WPix); |
||
Delphi |
object.WidthPix := WPix : Integer; |
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 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.