Sign in Join
FPDoc Onlineexperiment

TCustomAbstractGroupedEdit.BuddyClick procedure

Member of TCustomAbstractGroupedEditprotectedIn unit GroupedEdit

Performs actions needed when the Buddy control is clicked.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.