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

TSpeedButtonActionLink.SetImageIndex

Sets the image index in the control for the action link when enabled.

Declaration

Source position: buttons.pp line 313

protected procedure TSpeedButtonActionLink.SetImageIndex(

  Value: Integer

); override;

Arguments

Value

  

Ordinal position for the image selected in the speed button control.

Description

SetImageIndex is an overridden method used to change the selected image in the associated TSpeedButton control for the action link. SetImageIndex uses the value from IsImageIndexLinked to determine if the image can be changed by the action link. When IsImageIndexLinked returns False, no actions are performed in the method.

SetImageIndex accesses the internal TSpeedButton control for the action link, and sets its ImageIndex property to the ordinal position specified in Value.

See also

TSpeedButtonActionLink.IsImageIndexLinked

  

Determines whether the action link can update the image index for the associated control.

TSpeedButton.ImageIndex

  

Ordinal position for the glyph bitmap displayed when the button is in its up state.

TSpeedButton.Images

  

List of images available for use as state glyphs on the control.

TActionLink.SetImageIndex

  

Sets the value for the ImageIndex property in the linked client control.


Version 4.0 Generated 2025-05-03 Home