lnbSetTooltip: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>")
Line 26: Line 26:




| s2= ctrl [[lnbSetTooltip]] <nowiki>[</nowiki>[row, column], text] |SYNTAX2=
| s2= ctrl [[lnbSetTooltip]] [<nowiki/>[row, column], text] |SYNTAX2=


|p21= ctrl: [[Control]]  |PARAMETER21=
|p21= ctrl: [[Control]]  |PARAMETER21=
|p22= <nowiki>[</nowiki>[row, column], text]: [[Array]] | Parameter22=
|p22= [<nowiki/>[row, column], text]: [[Array]] | Parameter22=
|p23= [row, column]: [[Array]] |PARAMETER23=
|p23= [row, column]: [[Array]] |PARAMETER23=
|p24= row: [[Number]] |PARAMETER24=
|p24= row: [[Number]] |PARAMETER24=
Line 40: Line 40:


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



Revision as of 11:18, 19 March 2020

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:
Uncategorised

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