Mac Native Single-line Field

Typewidget
Dictionarymac.textfield
LibraryMac Native Single-line Field
Associationscom.livecode.widget.native.mac.textfield
Summary

This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.

OSmac
Description

This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.

TypeNameSummarySyntax
messagereturnKey

Sent when the user presses the return key

on returnKey

propertyenabled

The enabled state of the text field

set the enabled of <widget> to {true | false}

get the enabled of <widget>

- - -showBorder

Whether the text field has a border or not

set the showBorder of <widget> to { true | false }

get the showBorder of <widget>

- - -showFocusBorder

Whether the text field has a focus border or not

set the showFocusBorder of <widget> to { true | false }

get the showFocusBorder of <widget>

- - -text

The text displayed by the widget

set the text of <widget> to <pText>

get the text of <widget>

widgetMac Native Single-line Field

This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.

set the text of <widget> to <pText>

get the text of <widget>