= setCtlDefVal =
== Syntax == int setCtlDefVal(int n, int val) == Arguments == :n ::The number of the control to set a default value for :val ::The default value of the control == Return == Returns false if the control number is out of range or not in use, true otherwise. == Description == Sets the default value for the control when the user double clicks its text label. == Example == <code> // DefVal sets the double-click default value ctl[0]: STANDARD, "Control 0", DefVal=192 // Val sets the initial control value ctl[1]: STANDARD, "Control 1", Val=0 OnFilterStart: { // Double click on the text of Control // 1 to set to the default value of 128 setCtlDefVal(1, 128); return true; }</code> == See Also == |