menuHover: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2nd syntax, example, see also)
m (Text replacement - "‎" to "")
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DoLater|See also isn't showing correctly}}
{{RV|type=command
{{Command|Comments=


|arma3 |= Game
|game1= arma3
|version1= 1.56


|1.56|Game Version=
|gr1= GUI Control - Menu


|gr1= GUI Control - Menu |GROUP1=
|descr= Returns path to menu entry mouse is currently hovering over.


| Returns path to menu entry mouse is currently hovering over. |DESCRIPTION=
|s1= [[menuHover]] idc


|s1= [[menuHover]] idc |SYNTAX=
|p1= idc: [[Number]]


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


|r1= [[Array]] - Path to entry |RETURNVALUE=
|s2= [[menuHover]] control


|s2= [[menuHover]] control |Alternative Syntax=
|p21= control: [[Control]]


|p21= control: [[Control]] |Alternative Parameter 1=
|r2= [[Array]]


|r2= [[Array]] - Path to entry |RETURNVALUE2=
|x1= <sqf>private _path = menuHover (findDisplay 313 displayCtrl 120);</sqf>


|x1= <code>_path = [[menuHover]] ([[findDisplay]] 313 [[displayCtrl]] 120);</code> |EXAMPLE1=
|seealso= [[menuEnable]] [[menuExpand]] [[menuCollapse]] [[menuSetData]] [[menuSetValue]] [[menuSetCheck]] [[menuSetAction]] [[menuDelete]] [[menuAdd]] [[menuValue]] [[menuURL]] [[menuText]] [[menuSort]] [[menuSize]] [[menuEnabled]] [[menuChecked]] [[menuAction]] [[menuShortcutText]] [[menuShortcut]] [[menuPicture]] [[menuData]] [[menuClear]] [[menuSetPicture]]
 
|‎[[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}}}}]]

Latest revision as of 12:54, 26 April 2023

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:
private _path = menuHover (findDisplay 313 displayCtrl 120);

Additional Information

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