Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pass variables to Callback Functions (without using Globals
#4
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


Messages In This Thread
RE: How to pass variables to Callback Functions (without using Globals - by stupomer - 02-01-2019, 08:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)