Project Form in a abl MDI form

Posted by lefty1984 on 12-Jun-2018 16:46

Dear progress community,

How can i embed a Form from my project in an abl MDI Form?
In .net you can use
showform s = new showform ();
s.show();

Is this also possible in openedge? Or do I need a wincontainer and not a MDI Form?
Is it also possible to open a window from a location such as c:\project\forms\searchform.cls ?

Can anyone plz help me?

Posted by Mike Fechner on 13-Jun-2018 00:02

It’s the same. Assuming your mdiForm has the IsMdiParent = TRUE
 
Define variable s as ShowForm no-undo .
s = new ShowForm ().
s:MdiParent = mdiForm.
s:Show () .
 
“Is it also possible to open a window from a location such as c:\project\forms\searchform.cls”
 
You cannot run any ABL class using an absolute path. You’ll have to NEW it based on the type name (class name).
 
oForm = NEW forms.searchform ().
 
 

All Replies

Posted by jquerijero on 12-Jun-2018 16:50

Normally you just set a form as MDI Parent by assigning the form as MDI parent of another form. By the way, Infragistics has a nice MDI Tab manager component to make your child forms appear as tabs instead of being stacked one after another. 

Posted by Mike Fechner on 13-Jun-2018 00:02

It’s the same. Assuming your mdiForm has the IsMdiParent = TRUE
 
Define variable s as ShowForm no-undo .
s = new ShowForm ().
s:MdiParent = mdiForm.
s:Show () .
 
“Is it also possible to open a window from a location such as c:\project\forms\searchform.cls”
 
You cannot run any ABL class using an absolute path. You’ll have to NEW it based on the type name (class name).
 
oForm = NEW forms.searchform ().
 
 

Posted by lefty1984 on 13-Jun-2018 01:34

Dear Mike, Thanks in advanced. This was working for me. Very simple, I was struggleing with the form but now its working.

This thread is closed