Older Newer
Fri, 15 Nov 2019 05:03:10 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= 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 ==

<code>

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;

}

</code>

== See Also ==

setCtlPos