ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • MDI Tab control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Warning
From version 20 (57), it is recommended to use the DynamicTab property.
The TabMDI property is used to:
  • Get the type of a Tab control (simple tab or dynamic tab - MDI).
  • Change the type of a Tab control (simple tab or dynamic tab - MDI).
Reminder: A Dynamic Tab control allows adding, deleting and moving panes.
Example
// Checks whether the tab is an MDI tab
IF TAB_Tab1.TabMDI = True THEN
// Close all tabs
TabCloseAll(TAB_Tab1)
END
Syntax

Finding out whether a Tab control is an MDI tab (dynamic) Hide the details

<Result> = <Tab control>.TabMDI
<Result>: Boolean
  • True if the Tab control is an MDI tab (dynamic),
  • False if the Tab control is a simple tab.
<Tab control>: Control name
Name of the Tab control to be used.

Changing the type of a Tab control Hide the details

<Tab control>.TabMDI = <Type of Tab control>
<Tab control>: Control name
Name of the Tab control to be used.
<Type of Tab control>: Boolean
  • True to get an MDI Tab control (dynamic),
  • False to get a simple Tab control.
Remarks

MDI Tab control

If the TabMDI property is set to True:
  • the TabXXX functions can be called on the control.
  • the [] operator must called with the tab alias.
  • the end user can:
    • delete tabs if the WithClosingButton property is set to True.
    • add tabs if the WithNewButton property is set to True.
    • change the order of the tabs with the drag-and-drop feature.
    • undock panes if the UndockablePane property is set to True.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/04/2023

Send a report | Local help