PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating a dynamic tab
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The "Dynamic tab" Tab control is used to display several windows in the same window.
Going from a window to another one is done via tabs, according to an operating mode close to the one of Internet browsers:
  • the tabs can be "moved" outside the main window.
  • the tabs can be reorganized.
  • You have the ability to close some tabs and to open new ones.
Via this type of tabs, the end user can for example:
  • open several windows at the same time,
  • open several Customer forms at the same time,
  • display a list of customers and open several Customer forms,
  • keep a customer form opened on a second screen,
  • quickly go from a window to another one without losing its content and the cursor position, ...
Easily propose
Easily propose "browser-like" interfaces
Creating a dynamic tab
This tab must contain at least one standard tab pane. This standard tab pane cannot be undocked or handled like the dynamic tab panes.
The dynamic tab panes are added:
  • by programming with TabOpen.
  • by the user via the "+" button. In this case, the characteristics of the added dynamic tab pane can be defined in the editor ("Details" tab in the control description) or by programming.
  1. On the "Creation" pane, in the "Containers" group, expand "Tab and associated" and select "Dynamic tab".
  2. Click the position where the control will be created in the window. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control. The "Details" tab is used to configure the different options of the dynamic tabs.
Other method: To create a Tab control containing static and dynamic tab panes, use the following method:
  1. On the "Creation" pane, in the "Containers" group, expand "Tab and associated" and select "Tab".
  2. Click the position where the control will be created in the window. The control appears in creation mode.
  3. Display the description window of the Tab control ("Description" from the popup menu).
  4. In the "Details" tab, check "Enable the features of dynamic tabs". Then, you have the ability to define the different options of the dynamic tabs.
  5. Validate.
Note: You also have the ability to enable the "dynamic" mode on a Tab control via ..TabMDI. Note: You also have the ability to enable the "dynamic" mode on a Tab control via ..DynamicTab.
  • With "New" button (+): If this option is checked, a tab containing the "+" sign is displayed after the last tab pane. A click on this tab pane allows the user to create a new dynamic tab pane. This button can also be added by programming with ..WithNewButton.
  • With "Close" button (x): If this option is checked, the created dynamic tab panes include a cross allowing the user to close the tab pane. This button can also be added by programming with ..WithClosingButton.
  • Undockable panes: If this option is checked, the user will be able to undock the dynamic tab panes from the Tab control in order to position them outside the window. This feature can also be defined by programming with ..UndockablePane.
    Caution: only the dynamic tab panes can be undocked (the ones added by the "+" button or by TabOpen). The tab panes described in the editor cannot be undocked.
  • Store the configuration: If this option is checked, the tab configuration performed by the user will be stored. It will be automatically re-used during the next opening of window containing the dynamic tab panes. This feature can also be defined by programming with ..StoreTheConfiguration.
  • Internal window on New button (+): This option allows you to define the internal window that will be used when creating a new tab. The name of this internal window can be modified by programming with ..WindowIfNew.
    Notes:
    • You can allow the user to define the type of tab that will be created. To do so, specify an internal window proposing the different possible types. The user will only have to select the requested type. See Handling a dynamic tab by programming for more details.
    • When the internal window handled in the dynamic tab is using HFSQL data files, the internal window must use an independent HFSQL context.
    • If the background color of the internal window handled in the dynamic tab is defined as transparent, at run time, the dynamic pane will take the background color of the window containing the tab.
  • Default caption of new pane: This option is used to define the default caption that will be used when creating a new dynamic tab pane. This caption can be modified by ..CaptionIfNew.
Related Examples:
WD Multi-Windowing Training (WINDEV): WD Multi-Windowing
[ + ] This example presents the basic concepts for managing the multi-windowing and the dynamic tabs with WINDEV.

This example includes a simple interface for managing the customer forms:
- multi-windowing with MDI interface,
- multi tabs with a dynamic tab control.
Minimum required version
  • Version 20
Comments
Example Control TAB Wizard
Working with Screen TABs and Wizards

a) switch between tab via code
b) condition the change from one tab to another
c) make a screen wizard only with a button
d) have a local variable to know the current tab that is on the screen

DOWNLOAD
https://repository.windev.com/publish.awp?file_id=281474976710748;example-alter-tab
BOLLER
Jul. 27 2018