Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

ComboBoxGetDropWidth Function

Overview

The ComboBoxGetDropWidth function retrieves the width of the drop or list box portion of a combo box.

Syntax/Parameters

Syntax

int = ComboBoxGetDropWidth ( int id );

Parameters

id

An int containing the control ID of a combo box.

Return Value

Returns an int containing the width in pixels or an error on failure. Common error codes are as follows: ERROR_RANGE if id is an invalid control ID for the open dialog or ERROR_INVALID_HANDLE if no dialog is open. Use the GetLastError function to retrieve error information.

Remarks

This function can be used to get the width and then expand the drop list by a percentage of that width using the ComboBoxSetDropWidth function. The function will not operate on combo boxes created with the CBS_SIMPLE style.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic