PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
The WithNewButton property is used to:
  • Know if a dynamic Tab control has New tab (+) button.
  • Configure a dynamic Tab control to show a New tab button.
Reminder: The New tab button allows end users to open a new tab.
Example
TAB_DynTab.WithNewButton = True
TAB_DynTab.WindowIfNew = "IW_Document"
TAB_DynTab.CaptionIfNew = "New tab"
Syntax

Determining if a dynamic Tab control has New tab (+) button Hide the details

<Result> = <Tab control>.WithNewButton
<Result>: Boolean
  • True if all tabs in a dynamic Tab control include a New (+) button,
  • False if the tabs of a dynamic Tab control do not include a New tab button.
<Tab control>: Control name
Name of the Tab control to be used.

Configuring a dynamic Tab control to show a New tab button Hide the details

<Tab control>.WithNewButton = <New tab button>
<Tab control>: Control name
Name of the Tab control to be used.
<New tab button>: Boolean
  • True if the tabs of a dynamic Tab control should display a New tab button,
  • False if the tabs of a dynamic Tab control must not have a New tab button.
Remarks
  • The "Creating a pane" event is executed when the user clicks the "+" button. New tabs are created by default. However, you can prevent new tabs from being created using the "RESULT False" statement or ReturnToCapture in the "Creating a pane" event.
  • The text and the internal window used by default for the new tab can be defined:
  • If the tabs do not have a New tab button, the "New" AAF (Automatic Application Feature) is disabled in the context menu of the tab.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment