Swapping vs. Opening
The two primary window navigation operations are: swapping and opening.
To set the Open or Swap option
-
In the Designer, right-click on a component and choose Scripting.
The Component Scripting window is displayed. -
Go the to Navigation tab and click the Open/Swap button.
-
Select Open or Swap as your Navigation strategy.
Typically you want to use the Open option for Popup and Docked windows and the Swap for the Main windows that will be in the background as you can only view one at a time.
Swapping
In general, swapping involves closing one window, and then opening another window in its place. This operation can be performed on windows in any state: docked or floating, maximized or not. The Start Maximized and Dock Position properties of the window that is being swapped in will be ignored - it will take the dock and maximized state of the window that it is replacing.
This operation is so common in the typical navigation strategy that there is even a version of the swapping function dedicated to it, the swapTo function. This function eliminates the need to specify the window to swap from - you only need to specify the window to swap to. It will take the current "screen" window - that is, the current maximized window - as the window to swap from.
See the following functions for more information:
Opening
Opening and closing are the basic window navigation options. Opening a window opens the window at the same size it was in the Designer, unless the Start Maximized property is true or the Dock Position is not Floating.
To make a floating popup window open at a specific location, make sure to set the Location property of the window in the Designer. If the window was recently open, it will open in its last state due to window caching. See the Window's Cache Policy property for more information.