menuSetCheck: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (example, see also and 2nd syntax)
Line 10: Line 10:
| 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 be 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]]. |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 be 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]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________
| [[menuSetCheck]] [idc, path, checkedl] |SYNTAX=
| [[menuSetCheck]] [idc, path, checked] |SYNTAX=
|p1= idc: [[Number]] |PARAMETER1=
|p1= idc: [[Number]] |PARAMETER1=
|p2= path: [[Array]] |PARAMETER2=
|p2= path: [[Array]] |PARAMETER2=
|p3= checked: [[Boolean]] |PARAMETER3=
|p3= checked: [[Boolean]] |PARAMETER3=
| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
<!--
 
|s2= control |Alternative Syntax=
|s2= control [[menuSetCheck]] [path, checked] |Alternative Syntax=
|p21= control: [[Control]] |Alternative Parameter 1=
|p21= control: [[Control]] |Alternative Parameter 1=
|p22= |Alternative Parameter 2=
|p22= path: [[Array]] |Alternative Parameter 2=
|p23= |Alternative Parameter 3=
|p23= checked: [[Boolean]] |Alternative Parameter 3=
|r2=  |Alternative Return Value=
|r2=  [[Nothing]] |Alternative Return Value=
-->
 
|x1=  |EXAMPLE1=
|x1=  <Code>[[findDisplay]] 313 [[displayCtrl]] 120 [[menuSetCheck]] <nowiki>[</nowiki>[0,1], [[true]]];</code>|EXAMPLE1=
| ‎[[menuEnable]], [[menuExpand]], [[menuCollapse]], [[menuSetData]], [[menuSetValue]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[‎menuHover]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[‎menuSize]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuClear]], [[menuSetPicture]] |SEEALSO=
 
 
| [[‎menuChecked]] |SEEALSO=
}}
}}



Revision as of 10:15, 18 October 2020

Hover & click on the images for description

Description

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 be 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.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuSetCheck [idc, path, checked]
Parameters:
idc: Number
path: Array
checked: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
control menuSetCheck [path, checked]
Parameters:
control: Control
path: Array
checked: Boolean
Return Value:
Nothing

Examples

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

Additional Information

See also:
‎menuChecked

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Bottom Section