Vcl.ValEdit.TKeyOptions

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TKeyOptions = set of TKeyOption;

C++

typedef System::Set<TKeyOption, TKeyOption::keyEdit, TKeyOption::keyUnique> TKeyOptions;

Properties

Type Visibility Source Unit Parent
set
typedef
public
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit Vcl.ValEdit

Description

TKeyOptions and TKeyOption indicate the response of a value list editor to certain keystrokes.

TKeyOptions is a set of TKeyOption values. The possible values of TKeyOption are listed in the following table.



Option Meaning

keyEdit

The user can select and edit values in the first (key) column. That is, the user can specify the name in a name/value pair.

keyAdd

The user can add new name/value pairs. When included, the user can create new entries by pressing the Insert key or using the down arrow key when positioned on the last name/value pair. keyAdd requires that keyEdit is also included.

keyDelete

The user can delete the selected name/value pair by pressing the Delete key.

keyUnique

The user cannot create name/value pairs where the name portion is the same as the name in another name/value pair. Attempting to add a duplicate name causes the value list editor to raise an exception. keyUnique requires that keyEdit is also included.



See Also