Enables or disables autofill in combo boxes.

Added in 4.1.19

Usage

Set_Property(OLECtrlEntID, "OLE.AutoFill[CtrlId]", Boolean)

Values

[True | False]

Default: False

Indices

IndexDescription
CtrlIdIdentifies a subclassed combo box control

Remarks

Applies To: COMBOBOX

The AutoFill property can be used to turn on autocompletion in a combo box. When enabled, the edit field portion of the combo box is automatically filled with the best match of an item within the combo box's dropdown as the user types.

Example

// Subclass a combo box control (if you haven't already) 
CtrlId = @Window:".COMBOBOX" 
Handle = Get_Property(CtrlId, "HANDLE") 
rv = Send_Message(@Window:".OLE_SUBCLASS", "OLE.Subclass", Handle, CtrlId) 

// Enable auto fill (use ';' instead of '.' in index) 
Convert "." to ";" in CtrlId 
Set_Property(@Window:".OLE_SUBCLASS", "OLE.AutoFill[":CtrlId:"]", 1)
  • No labels