Vcl.ValEdit.TKeyOption

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TKeyOption = (keyEdit, keyAdd, keyDelete, keyUnique);

C++

enum DECLSPEC_DENUM TKeyOption : unsigned char { keyEdit, keyAdd, keyDelete, keyUnique };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit Vcl.ValEdit

Description

TKeyOption and TKeyOptions 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 can't 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.