How Do I Run a Program as an SDI Program? (Magic xpa 2.x)
An SDI, or Single Document Interface program is a program that has its own:
It does not have a parent; its parent is the Desktop. It runs in its own context.
It is very easy to create SDI windows in Magic xpa. Just follow the steps below.
-
Set Form Properties->Window Type=SDI.
-
Check Task Properties->Advanced->Parallel execution.
-
Make sure that the Main Program has Task Properties->Interface->Open Window evaluated to No. Otherwise you will get an error.
That is all you need to do to define an SDI context.
-
In Form Properties: When the task is defined as an SDI, there is a new section in the Form Properties called SDI. Here you can define:
-
Pulldown Menu and Display menu (Choose from the menus in the Menu repository).
-
Display Toolbar (to display or not).
-
Display Status Bar (to display or not).
-
Startup Mode (Default, Maximized, Minimized). If the form is set to Maximized, it will take up the entire desktop, because it is not confined to the Magic xpa frame.
Most of the rest of the Form Properties are still available and work as they would for any other form. The exception is the “Centered to MDI” startup position. This has no meaning, because there is no MDI, so it will be ignored.
|
|
-
In Task Properties you can set the icon of the form. This shows in the upper left corner of the form, and also appears when using Windows Alt+Tab. If no value exists there, then the application icon will be used.
How Do I Force the Runtime Engine to Run its Application as an SDI Application?