Older Newer
Sun, 06 Jul 2003 18:17:29 . . . . SyneRyder


Changes by last author:

Added:
= setCtlRange =

== Syntax ==

:setCtlRange(int n, int lo, int hi)

== Arguments ==

:n

::The number of the control whose range you wish to change.

:lo

::The minimum range value

:hi

::The maximum range value

== Description ==

:This function changes the range of the user control with the index n. You cannot change the range of all controls however - for example, you cannot change the range of a checkbox, since it would make no sense to do so.

== Example ==

<code>

// Changes user control 0 to take values from -128 to 128.

setCtlRange(0, -128, 128);

// Changes user control 23 to take values from 5 to -5.

setCtlRange(23, 5, -5);

</code>

== Also see ==

:setCtlVal, setCtlDivisor

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.