ComboBox Constructor (Typed) | |
Construct a combo box.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax CONSTRUCTOR(
oOwner,
xID,
oPoint,
oDimension,
kComboType,
kStyle
) CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public ComboBox(
Usual oOwner = default,
Usual xID = default,
Usual oPoint = default,
Usual oDimension = default,
Usual kComboType = default,
Usual kStyle = default
)
Request Example
View SourceParameters
- oOwner (Optional)
- Type: Usual
The window that owns the combo box. - xID (Optional)
- Type: Usual
The unique ID of the combo box (between 1 and 8000). - oPoint (Optional)
- Type: Usual
The origin of the combo box in canvas coordinates. - oDimension (Optional)
- Type: Usual
The dimension of the combo box in canvas coordinates. - kComboType (Optional)
- Type: Usual
The type of combo box to create, specified as one of the constants that are listed in the remarks section
- kStyle (Optional)
- Type: Usual
The style of the combo box, specified as one of the Windows API constants listed below:
Remarks ConstantCreatesBOXDROPDOWN
An extended combo box with both an edit control and a drop-down icon beside it. The user can enter/edit text in the edit control, or choose items from the list box. (The list box appears only if the user selects the drop-down icon; if the user then selects the icon again, the list box is hidden.) This is the default.
BOXDROPDOWNLIST
Same as BOXDROPDOWN, except that the user can only choose items from the list box. Text cannot be entered or edited in the edit control.
BOXSIMPLE
A extended combo box with both an edit control and a list box that are visible at all times. The user can enter/edit text in the edit control, or choose items from the list box.
Possible values for kStyle are:
Constant |
---|
CBS_AUTOHSCROLL | |
CBS_DISABLENOSCROLL | |
CBS_DROPDOWN | |
CBS_DROPDOWNLIST | |
CBS_HASSTRINGS | |
CBS_LOWERCASE | |
CBS_NOINTEGRALHEIGHT | |
CBS_OEMCONVERT | |
CBS_OWNERDRAWFIXED | |
CBS_OWNERDRAWVARIABLE | |
CBS_SIMPLE | |
CBS_SORT | |
CBS_UPPERCASE | |
See Also