Sign in Join
FPDoc Onlineexperiment

TCustomSpeedButton.FindDownButton function

Member of TCustomSpeedButtonpublicIn unit Buttons

Gets the speed button with the same GroupIndex that has its Down property set.

Declaration

pascal
function FindDownButton: TCustomSpeedButton

Function result

The speed button in the group which is down.

Description

FindDownButton locates a TCustomSpeedButton instance on the parent form which has the same GroupIndex and its Down property is set to True. FindDownButton visits each of the child controls on the parent form to find the speed buttons in the list of controls.

The return value contains the TCustomSpeedButton instance located. The return value is Nil if another speed button does not exist, is not in the same group, or is not Down.

No actions are performed in the method if the Down property in the current class instance is set, or when GroupIndex is 0 (zero). The return value is the current class instance in this circumstance.

See also

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