eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser CommandsExamples for Tasks of an CommandExamples for form commands 

Open a form

A form can be loaded as SFrame or SDialog. Calling the class method SFrame openSFrame(String name, boolean resizable, int extendState, boolean visible, boolean centered) of SWindowUtils returns an completly initialized SFrame. If the form is already opened, this form will be returned.

The following code fragment opens and initializes a form as SFrame:

SFrame frame = SWindowUtils.openSFrame(
        "Formulare/ViewPanel2.form",true,Frame.
         NORMAL,true,false);

Calling the class method openSDialog(String name, boolean resizable, int extendState, boolean visible, boolean centered) of SWindowUtils returns an completly initialized SDialog. If the form is already opened, this form will be returned.

The following code fragment opens and initializes a form as SDialog:

SDialog dialog = SWindowUtils.openSDialog(owner,
        "Formulare/ViewPanel.form",
         false, false, false);