In action bands there is a TAction component.
That component holds a property named
GroupIndex: Integer;
however the field
RadioItem: Boolean;
is not there.
- Why is that?
- How can I make a TAction to be a checkbox?
The orientation of the action is ActionMainMenuBar and ActionManager.
Though TAction descends from TComponent, an action is not a component in the sense of a GUI element. It is meant to be linked to a GUI element, which for instance can be a radio button, a checkbox, or in your case a TActionClientItem on a TActionMainMenuBar.
As for your questions:
The
GroupIndexproperty of an action indicates whether the action behaves like a radio item. The help says:To show a menu item (a TActionClientItem) in an ActionMainMenuBar with a checkbox:
Checkedto True,Categoryproperty,Checkedproperty in the action’s OnExecute event handler.To show a normal checkbox which is linked to an action in the ActionManager: do not use an ActionMainMenuBar, but an ActionToolBar on which you can drop the default checkbox component.