cantSelect

Specifies whether a control can be selected with the Pointer tool.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the cantSelect of object to {true | false}

# Examples

set the cantSelect of field "Background" to true

# Description

Use the cantSelect property to protect a control from being changed by the user.

If the cantSelect of a control is set to true, the user cannot select it (and so cannot resize it or move it). If a group or card has cantSelect set to true, all of its children will also act as if they have cantSelect set to true (i.e. They will also not be selectable.) You can use 'the effective cantSelect ' to determine if the object, or any of its ancestors have cantSelect set.

When the user clicks the control with the Pointer tool, LiveCode acts as though it has been clicked with the Browse tool. If the cantSelect is false, the user can click the control with the Pointer tool to select it.

A handler can still select the object, regardless of the setting of the cantSelect property.

# Tags

# See

- **keyword:** control, effective - **property:** selected - **command:** modeless, disable, select - **function:** tool - **glossary:** property, Pointer tool, Browse tool