selectionChanged

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
selectionChanged
Associationsfield, player
Summary

Sent to a field or player when the selection is changed.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on selectionChanged -- display selected char number
  put word 2 of the selectedChunk into field "Character Number"
end selectionChanged
RelatedKeyword: selection, field, player
Property: selected, startTime, endTime
Message: currentTimeChanged, selectedObjectChanged, textChanged, arrowKey
Command: select
Object: player
Glossary: handler, insertion point, message, field, property, select
Description

Handle the selectionChanged message if you want to perform updates or do some action when the user changes the selected text of a field or the selected portion of a player.

The selectionChanged message is sent to a field whenever the user makes a text selection or moves the insertion point in the field, after the selection is changed.

Note: If the selection change is a result of the text being added or removed (for example, cut or paste over selected text), selectionChanged will not be sent, but rather textChanged.

The selectionChanged message is sent to a player whenever the user selects a portion of the sound or movie, or when a handler sets the player's startTime or endTime property.

Note: If an already-selected-item in a list is reselected a selectionChanged message will still be sent.

Tagsui