How can I open a WPF window in a Progress openedge ABL dialog?

828 Views Asked by At

Is there an example to open WPF window in a Progress openedge ABL dialog?

2

There are 2 best solutions below

0
On BEST ANSWER

The use of WPF is officially not supported by Progress Software. However most things work - if you keep your fingers from multi-threading features (or know exactly what you are doing there).

I strongly suggest you read through the GUI for .NET documentation here: https://community.progress.com/community_groups/openedge_general/w/openedgegeneral/2743.openedge-11-6-product-documentation

You should be able to launch a (non blocking) WPF window from ABL code.

You cannot embed WPF elements into ABL widgets.

You can embed ABL widgets into a WinForms Form and then add an ElementHost Control to the Form on top of the WindowContainer that hosts your ABL Window (won't work with a Dialog frame though).

Is this worth the effort? I doubt it! It's rather go with a more modern WinForms browser control, this might get you started: https://thechriskent.com/2014/08/18/embedded-chromium-in-winforms/

0
On

This is very possible by creating a Winform and then calling the WPF application from there all within a Progress session. We have done this within an MDI interface that is running both Progress ABL and WPF in the same Session.