TabControl.SelectOnStartEditing

Syntax

SelectOnStartEditing: Boolean

Description

The SelectOnStartEditing property determines whether tab title is selected on double click.

Comments

If the property is set to True (default), the tab title text is selected on double click. If the property is set to False the cursor moves to the end of the text.

The property is relevant only if the TabControl.EnableEdit property is set to True.

Example

To execute the example, the page must contain the TabControl component named tabControl (see Example of Creating the TabControl Component). Enable tab titles editing and specify that on double click on the titles the cursor is placed in the end of the text:

//Enable editing of the tab title
tabControl.setEnableEdit(true);
//on double click over the title the cursor is put at the text end
tabControl.setSelectOnStartEditing(false);

After the example execution tab title editing is enabled. On double click on the title the cursor is placed in the end of the text.

See also:

TabControl