SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the width of the drop down portion in pixels.
Get
VB.NET | WPix = object.WidthPix As Integer |
VB | WPix = object.WidthPix As Long |
C#.NET | int WPix = object.WidthPix; |
VC++ | long WPix = object->WidthPix; long WPix = object->GetWidthPix(); |
C | HRESULT object->get_WidthPix(long* WPix); |
Put
VB.NET | object.WidthPix = WPix As Integer |
VB | object.WidthPix = WPix As Long |
C#.NET | int object.WidthPix = WPix; |
VC++ | long object->WidthPix = WPix; void object->PutWidthPix(long WPix); |
C | HRESULT object->put_WidthPix(long WPix); |
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.
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