Vcl.ValEdit.TValueListEditor.OnEditButtonClick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnEditButtonClick: TNotifyEvent read FOnEditButtonClick  write SetOnEditButtonClick;

C++

__property System::Classes::TNotifyEvent OnEditButtonClick = {read=FOnEditButtonClick, write=SetOnEditButtonClick};

Properties

Type Visibility Source Unit Parent
event published
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

Description

Occurs when the user click the ellipsis button on a cell in the values column or types Ctrl+Enter while focus is on a value cell with an ellipsis button.

Write an OnEditButtonClick to display a dialog that lets users edit a value in the Values column. This event only occurs for items for which the ItemProps property has an EditStyle of esEllipsis.

In the event handler, you can use the Row property to identify the row that the user is editing. The event handler (or the dialog that the event handler displays) can use the Keys property to identify the current key value, and use that to get and set the corresponding entry in the Values property that is being edited.

See Also