menuClear: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________
|arma3 |= Game
|arma3 |= Game
|1.56|Game Version=
|1.56|Game Version=
Line 7: Line 6:


|gr1= GUI Control - Menu |GROUP1=
|gr1= GUI Control - Menu |GROUP1=
____________________________________________________________________________________________
| Removes all entries from given menu strip. |DESCRIPTION=
| Removes all entries from given menu strip. |DESCRIPTION=
____________________________________________________________________________________________
| [[menuClear]] idc|SYNTAX=
| [[menuClear]] idc|SYNTAX=
|p1= idc: [[Number]] |PARAMETER1=
|p1= idc: [[Number]] |PARAMETER1=

Revision as of 02:56, 17 January 2021

Hover & click on the images for description

Description

Description:
Removes all entries from given menu strip.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuClear idc
Parameters:
idc: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
menuClear control
Parameters:
control: Control
Return Value:
Nothing

Examples

Example 1:
menuClear (findDisplay 313 displayCtrl 120);// Removes all entries from Eden Editor. Restart the editor to reset the menu.

Additional Information

See also:
menuEnablemenuExpandmenuCollapsemenuSetDatamenuSetValue‎menuSetCheckmenuSetActionmenuDeletemenuAdd‎menuHovermenuValuemenuURL‎menuTextmenuSort‎menuSizemenuEnabled‎menuCheckedmenuActionmenuShortcutTextmenuShortcutmenuPicturemenuDatamenuSetPicture

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