menuHover: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2nd syntax, example, see also)
m (fixed: See also would not show)
Line 1: Line 1:
{{DoLater|See also isn't showing correctly}}
{{Command|Comments=
{{Command|Comments=


Line 10: Line 9:
| Returns path to menu entry mouse is currently hovering over. |DESCRIPTION=
| Returns path to menu entry mouse is currently hovering over. |DESCRIPTION=


|s1= [[menuHover]] idc |SYNTAX=
| [[menuHover]] idc |SYNTAX=


|p1= idc: [[Number]] |PARAMETER1=
|p1= idc: [[Number]] |PARAMETER1=


|r1= [[Array]] - Path to entry |RETURNVALUE=
| [[Array]] |RETURNVALUE=


|s2= [[menuHover]] control |Alternative Syntax=
|s2= [[menuHover]] control |Alternative Syntax=
Line 20: Line 19:
|p21= control: [[Control]] |Alternative Parameter 1=
|p21= control: [[Control]] |Alternative Parameter 1=


|r2= [[Array]] - Path to entry |RETURNVALUE2=
|r2= [[Array]] |Alternative Return Value=


|x1= <code>_path = [[menuHover]] ([[findDisplay]] 313 [[displayCtrl]] 120);</code> |EXAMPLE1=
|x1= <Code>_path = [[menuHover]] ([[findDisplay]] 313 [[displayCtrl]] 120);</code>|EXAMPLE1=


|[[menuEnable]], [[menuExpand]], [[menuCollapse]], [[menuSetData]], [[menuSetValue]], [[‎menuSetCheck]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[‎menuSize]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuClear]], [[menuSetPicture]] |SEEALSO=
 
|[[menuEnable]], [[menuExpand]], [[menuCollapse]], [[menuSetData]], [[menuSetValue]], [[‎menuSetCheck]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[‎menuSize]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuClear]], [[menuSetPicture]] |SEEALSO=
}}
}}
<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 -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 08:49, 19 October 2020

Hover & click on the images for description

Description

Description:
Returns path to menu entry mouse is currently hovering over.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuHover idc
Parameters:
idc: Number
Return Value:
Array

Alternative Syntax

Syntax:
menuHover control
Parameters:
control: Control
Return Value:
Array

Examples

Example 1:
_path = menuHover (findDisplay 313 displayCtrl 120);

Additional Information

See also:
menuEnablemenuExpandmenuCollapsemenuSetDatamenuSetValue‎menuSetCheckmenuSetActionmenuDeletemenuAddmenuValuemenuURL‎menuTextmenuSort‎menuSizemenuEnabled‎menuCheckedmenuActionmenuShortcutTextmenuShortcutmenuPicturemenuDatamenuClearmenuSetPicture

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