How to make a Delphi TSpeedButton stay pressed if it's the only one in the group

后端 未结 11 1965
既然无缘
既然无缘 2021-01-04 12:13

I\'m not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn\'t stay pressed, whether or not \"AllowAllUp\

11条回答
  •  别那么骄傲
    2021-01-04 13:01

    I just tried that in Delphi 7 (Build 4.453):

    • create new application
    • add TSpeedButton to form
    • set AllowAllUp := true;
    • set GroupIndex := 1;
    • run application

    When clicking the button it toggles its down state without any other code needed.

提交回复
热议问题