OnAction
Form controls have an onAction
property which can be assigned the name of a procedure to be called.
In order to pass parameters to the procedure, the name and the parameter values must be enclused in single quotes. No parantheses are needed:
ctr.onAction = "'callbackSub 42, ""hello world""'"