Class TMenuItemRadioGroup
Unit
Declaration
type TMenuItemRadioGroup = class(specialize TObjectList<TMenuItemRadio>)
Description
A group of radio buttons.
An instance of this object is always created and destroyed automatically by TMenuItemRadio objects. All TMenuItemRadio within the same group share the same TMenuItemRadioGroup
instance.
Never modify anything within this group using general TObjectList properties. Instead always use methods defined here. TODO: This should not descend from TObjectList<TMenuItemRadio> then, it should contain it privately.
Hierarchy
- TObject
- TList
- TObjectList
- TMenuItemRadioGroup
Overview
Methods
procedure Add(Item: TMenuItemRadio); reintroduce; |
|
procedure Remove(Item: TMenuItemRadio); |
|
function Previous(out Item: TMenuItemRadio; const Cycle: Boolean = false): Boolean; |
|
function Next(out Item: TMenuItemRadio; const Cycle: Boolean = false): Boolean; |
Properties
property Selected: TMenuItemRadio read FSelected write SetSelected; |
Description
Methods
procedure Add(Item: TMenuItemRadio); reintroduce; |
|
Adds an existing radio menu item to this group. After this, Item.Group will point to this group object. Note that Item.Checked may be changed to |
procedure Remove(Item: TMenuItemRadio); |
|
This item has no description. |
function Previous(out Item: TMenuItemRadio; const Cycle: Boolean = false): Boolean; |
|
Return If there's no
Only when there's no Selected item, returns |
function Next(out Item: TMenuItemRadio; const Cycle: Boolean = false): Boolean; |
|
Return If there's no
Only when there's no Selected item, returns |
Properties
property Selected: TMenuItemRadio read FSelected write SetSelected; |
|
This is the only currently Checked item. It can be nil if no item is checked currently (this can happen if you added all initial items with Checked = |
Generated by PasDoc 0.16.0-snapshot.