Hi,
Running 10.2B.
I have created a class (Progress.Windows.Form) which contains a .NET treeview and a WindowContainer containing a 4GL window.
When the user clicks something in the 4GL window, I need my main class to know something happened and to tell the treeview to refresh.
It is like I need something that does 'on choose of bRefresh in 4GLHandle...'
but I need it in my main class.
Any ideas?
Thanks,
Justin
A public method (in an Interface) that the .p might call should do.
Events don't work from .w to .cls
So what is your ideal way of implementing this?
Sorry I really have no idea what you are suggesting.
Add a public method to the .NET Form class and invoke that from the
ABL GUI program.
Please help me to get a bit clearer about this:
Does your ABL Window Program instantiate the .NET Form class or does the .NET Form class run the ABL Window program (persistently)?
The .NET Form class runs the ABL window program persistently.
Thank you so much for your idea, I think it was brain freeze.
I ended up making the public methods as you suggested and passed THIS-OBJECT to the .w during the persistent run command. I may end up just passing the treeview object, but now I know how to let the objects know an event occurred in the .w. Thanks again.