Loading...
 

ControlWindow

ControlWindow

ControlWindow(windowID), ControlWindow, ControlWindow(STACK)

parameters: Identifier of a Windows

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top -

Sets the specified window as the new main window (control window).

Code example:

ControlWindow // Current window becomes ControlWin NULL ControlWindow(STACK) // No window is the ControlWin

Basically, the window flag CONTROL_WINDOW should be preferred, because this way it is clear from the window definition which window is the main window. Only if the main window can only be determined at runtime or the main window changes dynamically, the command ControlWindow should be used.

Properties of the main window

  • All other ClassiX windows are always in front of this window (they can never be hidden by the main window).
  • If the main window is closed, all other windows close and the application is terminated.
  • If the main window is minimised, all open windows are also minimised (except the tray menu). When restoring, the sub-windows are also restored.
  • Its menu is the main menu of the application and is always accessible in MorphIT, regardless of which window is currently being used.

Applications without main window

If an application does not define a main window, then all windows are independent of each other and can cover each other. The application is terminated when the last window is closed and the request queue is completely processed after the last CLOSE event.

See also