Arma 3 Scripting

Command in GUI Control - Menu

menuSetCheck

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets item on given path to be checked or not. By default menu strip entries are not checkable. Once this command was executed, an entry can become checked and unchecked. If an entry is checked is indicated by a tick to the left of the entry's text. Setting an entry to be checkable will overwrite set picture with menuSetPicture.

Syntax

Syntax 1

menuSetCheck [idc, path, checked]

Parameters:

Returns: Nothing

Syntax 2

control menuSetCheck [path, checked]

Parameters:

Returns: Nothing

Examples

Example 1

findDisplay 313 displayCtrl 120 menuSetCheck [[0,1], true];

See also

menuChecked