PDA

View Full Version : Callback function name backward incompatibility


Jerry
12-20-2006, 12:37 PM
I notice that when you delcare a callback, e.g.,

viz.callback(viz.KEYDOWN_EVENT, myKey)

you can no longer put the function name in single quotes, e.g.,

viz.callback(viz.KEYDOWN_EVENT, 'myKey').

Is it possible to make both versions work in Viz3. Otherwise I will have
to change it in all the scripts I've written in Viz2.

farshizzo
12-20-2006, 12:39 PM
Vizard 3.0 will only accept a function pointer, but once you make this change it will still work with Vizard 2.x