Events inside WindowContainers

Posted by justinfowler on 25-Mar-2010 14:35

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

All Replies

Posted by Admin on 25-Mar-2010 15:15

A public method (in an Interface) that the .p might call should do.

Events don't work from .w to .cls

Posted by justinfowler on 25-Mar-2010 15:35

So what is your ideal way of implementing this?

Sorry I really have no idea what you are suggesting.

Posted by Admin on 25-Mar-2010 15:55

Add a public method to the .NET Form class and invoke that from the

ABL GUI program.

Posted by Admin on 25-Mar-2010 23:17

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)?

Posted by justinfowler on 26-Mar-2010 08:20

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.

This thread is closed