TabControl.EnableDelete

Syntax

EnableDelete: Boolean;

Description

The EnableDelete property determines whether tabs can be deleted.

Comments

Available value:

Example

To execute the example, the page must contain the TabControl component named tabcontrol (see Example of Creating the TabControl Component). Enable deletion and add a handler for the TabControl.TabDeleted event:

tabcontrol.setEnableDelete(true);
tabcontrol.TabDeleted.add(function ()
    {
       confirm("Delete tab?")
    })

After executing the example the Delete icons are displayed on the tabs. Clicking these icons shows a confirmation dialog box with the following text: Delete tab?.

See also:

TabControl