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 percent of the control's width.
Get
VB.NET | WPercent = object.WidthPercent As Integer |
VB | WPercent = object.WidthPercent As Integer |
C#.NET | int WPercent = object.WidthPercent; |
VC++ | int WPercent = object->WidthPercent; int WPercent = object->GetWidthPercent(); |
C | HRESULT object->get_WidthPercent(int* WPercent); |
Put
VB.NET | object.WidthPercent = WPercent As Integer |
VB | object.WidthPercent = WPercent As Integer |
C#.NET | int object.WidthPercent = WPercent; |
VC++ | int object->WidthPercent = WPercent; void object->PutWidthPercent(int WPercent); |
C | HRESULT object->put_WidthPercent(int WPercent); |
object
WPercent
Defines the width of the drop down portion in percent of the control's width. It defines the width of the drop down portion as a percentage of the static portion or edit control portion. I.e., the value 120 (120%) would result in the drop down portion to have a width of 1.2 times the combo box client area width. If 0 is used, the drop down portion has the same width as the combo box client area.
The WidthPercent property defines the width of the drop down portion in percent of the control's width.
The width defined using WidthPercent 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.Width property can also be used to define the width. If the WidthPercent property is set, the DropDown.Width property is set to 0.
The WidthPercent 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