[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Buttons' (#lcl)

TCustomSpeedButton.FindDownButton

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

Declaration

Source position: buttons.pp line 408

public function TCustomSpeedButton.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

TCustomSpeedButton.GroupIndex

  

Identifies the group to which the speed button control belongs.

TCustomSpeedButton.Down

  

Indicates if the button has been set to the Down state.

TControl.Parent

  

The control within which the control is shown.


Version 3.2 Generated 2024-02-25 Home