Project Form in a abl MDI form - Forum - OpenEdge Development - Progress Community
 Forum

Project Form in a abl MDI form

This question is answered

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?

Verified Answer
  • 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 ().
     
     

    Architect of the SmartComponent Library and WinKit

    Consultingwerk Ltd.

All Replies
  • 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. 

  • 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 ().
     
     

    Architect of the SmartComponent Library and WinKit

    Consultingwerk Ltd.

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