listBehavior | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | autoselect | ||||||
Associations | field | ||||||
Summary | Specifies whether a locked field behaves as a clickable list. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: field, selection Property: noncontiguousHilites, dontWrap, autoHilite, lockText, multipleHilites, threeDHilite, toggleHilites, hilitedLine Message: mouseDown, mouseRelease, mouseUp Object: field Glossary: property, highlight, lock, message, line, list field, field | ||||||
Description | Use the listBehavior property to create a list box. If a field's listBehavior property is set to true, and the user clicks a line, the entire line is highlighted. The Up and Down arrow keys move the selection up or down. Normally, the mouseUp and mouseDown messages are sent to the field as usual. However, if the user clicks below the last line of text in the field, a mouseRelease message is sent instead of mouseUp. You use the hilitedLine property to determine which line the user clicked. The field's hilitedLine is set to the new line before the mouseDown message is sent, so there is no way to determine the previously-selected line. If the field's autoHilite property is set to false, a clicked line does not highlight, regardless of the listBehavior setting; the field does not behave like a clickable list in this case. However, you can set the hilitedLine of the field even if the field's autoHilite is false.
| ||||||
Tags | ui |