02-01-2019, 08:04 PM
Yes, this worked!
When I created the event handler in a current version of QM, it created the callback as a subfunction in the parent dialog rather than a folder:
xGrid._setevents("FlexGrid_ICH_DMSFlexGridEvents") --> xGrid._setevents("sub.xGrid")
The only difference from your example was that I had to make the shared variables thread scope rather than local, else they wouldn't be recognized. Also I couldn't just pass hDlg like I often do in my other custom functions called out of my dialogs. I had to say something like: int- hMyDlg = hDlg
But this is truly great and allows me to avoid globals!
Thanks so much!,
Stuart
When I created the event handler in a current version of QM, it created the callback as a subfunction in the parent dialog rather than a folder:
xGrid._setevents("FlexGrid_ICH_DMSFlexGridEvents") --> xGrid._setevents("sub.xGrid")
The only difference from your example was that I had to make the shared variables thread scope rather than local, else they wouldn't be recognized. Also I couldn't just pass hDlg like I often do in my other custom functions called out of my dialogs. I had to say something like: int- hMyDlg = hDlg
But this is truly great and allows me to avoid globals!
Thanks so much!,
Stuart