menuClear: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
m (Text replacement - "‎" to "")
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command
|arma3 |= Game
 
|1.56
|game1= arma3
|arg=
|version1= 1.56
|eff=


|gr1= GUI Control - Menu
|gr1= GUI Control - Menu
| Removes all entries from given menu strip.
 
| [[menuClear]] idc
|descr= Removes all entries from given menu strip.
 
|s1= [[menuClear]] idc
 
|p1= idc: [[Number]]
|p1= idc: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]


|s2= [[menuClear]] control
|s2= [[menuClear]] control
|p21= control: [[Control]]
|p21= control: [[Control]]


|r2= [[Nothing]] |Alternative Return Value=
|r2= [[Nothing]]


|x1= <sqf>menuClear (findDisplay 313 displayCtrl 120); // removes all entries from Eden Editor. Restart the editor to reset the menu.</sqf>


|x1= <code>[[menuClear]] ([[findDisplay]] 313 [[displayCtrl]] 120);{{cc|Removes all entries from [[Eden Editor]]. Restart the editor to reset the menu.}}</code>
|seealso= [[menuEnable]] [[menuExpand]] [[menuCollapse]] [[menuSetData]] [[menuSetValue]] [[menuSetCheck]] [[menuSetAction]] [[menuDelete]] [[menuAdd]] [[menuHover]] [[menuValue]] [[menuURL]] [[menuText]] [[menuSort]] [[menuSize]] [[menuEnabled]] [[menuChecked]] [[menuAction]] [[menuShortcutText]] [[menuShortcut]] [[menuPicture]] [[menuData]] [[menuSetPicture]]
 
| ‎[[menuEnable]], [[menuExpand]], [[menuCollapse]], [[menuSetData]], [[menuSetValue]], [[‎menuSetCheck]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[‎menuHover]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[‎menuSize]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuSetPicture]]
}}
}}
<dl class='command_description'>
<!-- BEGIN Note Section -->
<!-- For example:
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] Leave it here for others to read; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
<!-- Appropriate categories go here -->
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:55, 26 April 2023

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:
menuEnable menuExpand menuCollapse menuSetData menuSetValue menuSetCheck menuSetAction menuDelete menuAdd menuHover menuValue menuURL menuText menuSort menuSize menuEnabled menuChecked menuAction menuShortcutText menuShortcut menuPicture menuData menuSetPicture

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