ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Tab control
  • Associating a control with a tab pane
  • Not associating a control with a tab
  • WLanguage functions and properties specific to the management of tabs
  • Name of the Tab control associated with a control
  • Tab panes associated with a 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
Associating a control with a tab pane
Associating a control with a tab pane
To associate a control with a tab pane:
  • Method 1: Position the control on the desired tab pane. The control is automatically associated with the current tab.
  • Method 2:
    • Open the context menu of the control.
    • Select "Associate ... with a tab".
    • In the window that appears, select the tab associated with the control.
    • Validate.
Remarks:
  • To associate a control with a tab without positioning it in the tab pane, choose the second method.
  • WINDEV A control can be associated with several tabs. Simply use the second method and select all the desired tabs.
  • WINDEV This help page presents static tabs only.
Not associating a control with a tab
A control positioned on a tab pane is not necessarily associated with the corresponding tab. Sometimes, you may want a control to be displayed regardless of the selected tab.
To not associate a control with a tab:
  1. Select "Associate .. with a tab" in the context menu of the control.
  2. Select "None".
WLanguage functions and properties specific to the management of tabs

Name of the Tab control associated with a control

To get the name of the Tab control associated with a control, use ControlTab.
Example:
// EDT_Name1 is on the TAB_TabInfo control
Info(ControlTab(EDT_Name1))     // Returns "TAB_TabInfo"
WINDEV

Tab panes associated with a control

To get and change the tab pane(s) associated with a control, use the Pane property.
Example:
// Associate the Validate button to panes 1, 2 and 4
BTN_Validate.Pane = "1,2,4"

// Find out the panes associated with a button
IF BTN_Validate.Pane [=] "2" THEN Info("The control is associated with pane 2")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/26/2024

Send a report | Local help