ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The WithClosingButton property is used to:
  • Determine whether all the tabs of a Dynamic Tab control have a Close button.
  • Show a Close button in all the tabs of a Dynamic Tab control.
Reminder: The Close button (X) allows users to close the tabs.
Example
TAB_DynamicTab.WithClosingButton = True
Syntax

Determining whether all the tabs of a Dynamic Tab control have a Close button Hide the details

<Result> = <Tab control>.WithClosingButton
<Result>: Boolean
  • True if all the tabs of a Dynamic Tab control have a Close button (X),
  • False if the tabs of a Dynamic Tab control do not have a Close button (X).
<Tab control>: Control name
Name of the Tab control to be used.

Showing a Close button in all the tabs of a Dynamic Tab control Hide the details

<Tab control>.WithClosingButton = <Close button>
<Tab control>: Control name
Name of the Tab control to be used.
<Close button>: Boolean
  • True if the tabs of a Dynamic Tab control should show a Close button (X),
  • False if the tabs of a Dynamic Tab control should not show a Close button (X).
Remarks
  • The "Close a tab" event is executed when the user clicks the Close button (if any). The tab is closed if this event does not prevent the user from closing it (with the "RESULT False" statement or SetFocusAndReturnToUserInput).
  • If the tabs do not have a Close button (X), the following Automatic Application Features (AAFs) are disabled from the context menu of the tabs:
    • Close,
    • Close other tabs,
    • Close tabs to the right,
    • Close tabs to the left.
  • The "X" icon cannot be removed or displayed on a single tab: either all or none of the tabs display an X icon.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/10/2022

Send a report | Local help