TsSpeedButton.Images + TAction.Enabled

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36122
    goliathbe
    Participant

    I have a TsSpeedButton which has its Images and ImageIndex properties set to display an image. This TsSpeedButton has an action associated with it through a TActionList. When disabling this action, the TsSpeedButton's Images property is cleared (<- bug). This started when upgrading from an older version (8.23?) to the latest version 8.53. Version 9.01 has the same issue. Is there a possibility to download the older versions as a temporary fix?

    #51883
    goliathbe
    Participant

    The cause is line 1399 in sSpeedButton.pas (v9.01)

    Code:
    procedure TsSpeedButton.ActionChanged(Sender: TObject);

    Images := TCustomAction(Sender).ActionList.Images;

    end;

    The ImageList of the SpeedButton is set to the Images of the ActionList. In my case, the Images property of the ActionList is empty. Reason: I have two collections of speedbuttons: with 16×16 icons, and with 32×32 icons. Both take their actions from the same actionlist.

    Whether I'm at fault here for not splitting my action lists, I don't know…

    #51929
    Support
    Keymaster

    Hello!

    Try the v9.03, the problem is gone there?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.