Method popupMenu.AddRadio
Overload
Adds menu item to be used as a radio button in a group of such items.
public PMItem AddRadio(string text, bool check = false, Action<PMItem> click = null, bool disable = false, MTImage image = default, int l_ = 0, string f_ = null)
Parameters
text (string)
Item text. Can include hotkey, tooltip and underlined character, like |
check (bool)
Checked state. |
click (Action<PMItem>)
Action executed on click. |
disable (bool)
Disabled state. |
image (MTImage)
Item image. Read here: MTBase. |
l_ (int) |
f_ (string) |
Returns
Remarks
When clicked an unchecked radio item, its PMItem.IsChecked state becomes true
; IsChecked of other group items become false
.