lnbSetTooltip: 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 name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= GUI Control - ListNBox |GROUP1=
|gr1= GUI Control - ListNBox |GROUP1=
____________________________________________________________________________________________


| Sets tooltip on the item with the given row and column of the 2D listbox.<br><br>  
| Sets tooltip on the item with the given row and column of the 2D listbox.<br><br>  
{{Important | While it is possible to set tooltip on any column, only tooltip from the primary column 0 is displayed for the whole row under cursor, which makes adding tooltips to columns other than 0 impractical. }}|DESCRIPTION=
{{Important | While it is possible to set tooltip on any column, only tooltip from the primary column 0 is displayed for the whole row under cursor, which makes adding tooltips to columns other than 0 impractical. }}|DESCRIPTION=
____________________________________________________________________________________________


|  [[lnbSetTooltip]] [idc, [row, column], text] |SYNTAX=
|  [[lnbSetTooltip]] [idc, [row, column], text] |SYNTAX=
Line 24: Line 21:
| [[Nothing]] |RETURNVALUE=  
| [[Nothing]] |RETURNVALUE=  


__________________________________________________________________________________________




Line 38: Line 34:
|r2= [[Nothing]] |RETURNVALUE2=  
|r2= [[Nothing]] |RETURNVALUE2=  


____________________________________________________________________________________________


|x1= <code>[[lnbSetTooltip]] [1234, [1,0], "tip"];</code>|EXAMPLE1=
|x1= <code>[[lnbSetTooltip]] [1234, [1,0], "tip"];</code>|EXAMPLE1=
|x2= <code>_ctrl [[lnbSetTooltip]] [<nowiki/>[3,0], "top"];</code>|EXAMPLE2=
|x2= <code>_ctrl [[lnbSetTooltip]] [<nowiki/>[3,0], "top"];</code>|EXAMPLE2=
____________________________________________________________________________________________


| [[lbSetTooltip]], [[lnbSetData]], [[lnbAddArray]], [[lnbAddColumn]], [[lnbAddRow]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbPicture]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |SEEALSO=  
| [[lbSetTooltip]], [[lnbSetData]], [[lnbAddArray]], [[lnbAddColumn]], [[lnbAddRow]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbPicture]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}


{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 02:49, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets tooltip on the item with the given row and column of the 2D listbox.

While it is possible to set tooltip on any column, only tooltip from the primary column 0 is displayed for the whole row under cursor, which makes adding tooltips to columns other than 0 impractical.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbSetTooltip [idc, [row, column], text]
Parameters:
[idc, [row, column], text]: Array
idc: Number
[row, column]: Array
row: Number
column: Number - pretty much always 0, see description note
text: String - tooltip to add
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl lnbSetTooltip [[row, column], text]
Parameters:
ctrl: Control
[[row, column], text]: Array
[row, column]: Array
row: Number
column: Number - pretty much always 0, see description note
text: String - tooltip to add
Return Value:
Nothing

Examples

Example 1:
lnbSetTooltip [1234, [1,0], "tip"];
Example 2:
_ctrl lnbSetTooltip [[3,0], "top"];

Additional Information

See also:
lbSetTooltiplnbSetDatalnbAddArraylnbAddColumnlnbAddRowlnbClearlnbColorlnbCurSelRowlnbDatalnbDeleteColumnlnbDeleteRowlnbGetColumnsPositionlnbPicturelnbSetColorlnbSetColumnsPoslnbSetCurSelRowlnbSetPicturelnbSetTextlnbSetValuelnbSizelnbTextlnbValue

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