setCtlEditSize

Syntax

int setCtlEditSize(int n, int w, int h)

Arguments

n
The number of the user control to resize
w
The new width of the edit box
h
The new height of the edit box

Return

Returns true (non-zero) if the given control n is a STANDARD or SLIDER control, false (zero) otherwise.

Description

Resizes the text edit box to the right of a standard slider control.

Example

ctl[0]: STANDARD(HORZ), Text="Width", Val=20

OnCtl(n): {
  if (n == 0) {
    // Resize width of slider edit box
    setCtlEditSize(0, ctl(0), 10);
  }
  return false;
}

See Also

setCtlPos