@David-Healey said in Code feedback on this custom envelope panel:
For paint routines and mouse callbacks I'm not sure it makes a difference since the paint routine or mouse callback is still a regular function.
Yes but the way I understand it (might be wrong though) is that it's faster to execute even if the outside part isn't inlined. The inline part containing locals, the code execution inside it seems faster especially for long paint routines or mouseCB. Then what happens after this isn't affected but at least the script part might be improved.