DELPHI SpeedButton multiple sets together, only one of which is pressed and the other down value is false

First, put multiple speedbutton controls in a panel, and you can define the style yourself. After I drag them out, modify their properties

parentBiDimode、parentFont、parentShowHint都为false。

Transparent is also set to false. This is to keep the speedbutton his own color

The main thing is to set the value of GroupIndex to be the same, here I set it to 1.

In this way, multiple speedButtons are realized together, and only one of them is pressed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325494905&siteId=291194637