[Overview][Types][Classes][Index] | Reference for unit 'GroupedEdit' (#lcl)

# TCustomAbstractGroupedEdit.BuddyClick

Performs actions needed when the Buddy control is clicked.

## Declaration

Source position: groupededit.pp line 205

`protected procedure TCustomAbstractGroupedEdit.BuddyClick; virtual;`

## Description

Used in internal methods to redirect events from the Buddy control to the container class (the current class instance).

BuddyClick uses the value in ReadOnly to determine if the grouped edit control should respond to a Click event from the Buddy control. When ReadOnly is True, no actions are performed in the method.

BuddyClick signals the OnBuddyEvent handler (when assigned). When the BuddyClick code points to this method (and not an overridden one in a descendant), the FocusOnBuddyClick method is called to determine if focus and selection changes are handled by the current class instance.

Derived controls may override BuddyClick to run a dialog after calling the inherited method. In this scenario, selecting the text in this method is most likely premature. It is the responsibility of the derived control to implement focus changes and selection as needed.

## See also

TCustomAbstractGroupedEdit.Buddy |  | Represents the associated TControl instance in the grouped edit control.
TCustomAbstractGroupedEdit.ReadOnly |  | Indicates whether the value for the control can be changed.
TCustomAbstractGroupedEdit.FocusOnBuddyClick |  | Determines if the control receives focus when the Buddy control is clicked.