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

后端 未结 11 1964
既然无缘
既然无缘 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

    The trick is to set the GroupIndex to a unique value and set AllowAllUp to true. If you forget the first, it will not stay down, if you forget the second, it will not stay up, once it has been down.

提交回复
热议问题