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

后端 未结 11 2123
既然无缘
既然无缘 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 12:55

    knight_killer is correct. i can tell you it'll work in any version of delphi:

    object SpeedButton1: TSpeedButton
      Left = 152
      Top = 384
      Width = 23
      Height = 22
      AllowAllUp = True
      GroupIndex = 99
    end
    

提交回复
热议问题