FormComboBoxControl.widthValue Method [AX 2012]

Gets or sets the width of the control.

public int widthValue([int value])

Run On

Client

Parameters

value
Type: int
An integer value that specifies the width in pixels; optional.

Return Value

Type: int
The width of the control in pixels.

To change the width of the control, use the Exact width calculation mode.

The following example shows how to return and set the width value of a form combo box control.

int nWidthValue; 
 
// The ctrl variable was previously assigned 
// as a form combo box control variable. 
 
// Retrieve the width value. 
nWidthValue = ctrl.widthValue(); 
 
// Set the width value. 
ctrl.widthMode(-1); 
ctrl.widthValue(160);

Community Additions

ADD
Show: