开发者

Ribbon buttons act like a group

开发者 https://www.devze.com 2023-02-03 19:58 出处:网络
I created 3 actions and assigned them to 3 buttons in a ribbon group. I want the buttons act like a group, one is always down, the others - up. Just like left/center/right align buttons.

I created 3 actions and assigned them to 3 buttons in a ribbon group. I want the buttons act like a group, one is always down, the others - up. Just like left/center/right align buttons.

I have set groupIndex property of my actions to 1. Help says: "GroupIndex is used to define groups of actions that act like radio buttons. When GroupIndex is greater than 0, it identifies the group to which the action belongs. When the Checked property of any action in that group is set to true, the Checked property of all oth开发者_开发百科er actions in the group is set to false. That is, only one action in the group can be checked at a time."

But it is not working at all.

Any help?


Try to set the property AutoCheck = true for both items. It helped me =)


Without more information the only thing I can suggest is (if you are using tdxRibbon) is to check and make sure the buttonstyle property is set to bsChecked. Although it shouldn't let you set the group index otherwise.

0

精彩评论

暂无评论...
验证码 换一张
取 消