[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 295

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 Image used as the glyph for the control.

TSpeedButton.Images

  

Contains images available for use as the glyph for the control.

TActionLink.SetImageIndex

  

SetImageIndex - specifies the index value for the image associated with the action.