Tabbed view displays sheets opened in the MDI frame window as tabs. When the window type is MDI or MDIHelp, you can directly select the following IDE options to implement the tabbed view:
-
TabbedView option -- Adds an internal tabbed bar control on the top of the MDI client area and displays the sheets as tab pages automatically. The height of the main window is automatically adjusted to show the tabbed view.
-
MaximizeAllTabbedSheets option -- Displays all tabbed sheets (opened via OpenSheet or OpenSheetWithParm) at the maximum size, ignoring the arrangeopen argument of the OpenSheet/OpenSheetWithParm method.
Note that
-
TabbedView and MaximizeAllTabbedSheets options can only be set (enabled or disabled) in the IDE; they cannot be set via scripts.
-
When TabbedView is enabled, an internal tabbed bar control is added on top of the MDI window, and it is named mditbb_1 automatically. If your code checks the existence of all controls in the window, for example, if your code calls the "of_setcontrolstatus" method of the "pfc_n_cst_security" object in the PFC framework, make sure you have modified the code to check mditbb_1, or upgraded your PFC framework to this version or later to avoid any error.
-
The tabbed bar control has no functions or events; but you can get and set the properties (such as icon, text, PowerTips, context menu etc.) of the control via scripts. View examples here.
-
When the MaximizeAllTabbedSheets option is selected, the resize event of the sheet window will be triggered twice. The first trigger occurs when the sheet window is opened, and the second trigger occurs when it detects that the MaximizeAllTabbedSheets option is selected.
-
Adding (and manipulating) the tabbed bar control in the window manually (e.g. from menu Insert > Control) like other controls will be supported in future version.
-
The following runtime file is required for tabbed view to work: pbtabbedbar.dll.
For more information, refer to the section called “Displaying sheets in tabbed view” in Application Techniques.