Direct link to this comment

Jason - it looks like you have programmatically created your GUI, so why not nest your function and callbacks in the main function so that they have access to the variables (in this case the handles) declared in the main function? SeeNested Functions for more details.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.