lnbSetTooltip: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(50 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.94


|1.93|= Game version
|gr1= GUI Control - ListNBox


____________________________________________________________________________________________
|descr= Sets tooltip on the item with the given row and column of [[CT_LISTNBOX]].
{{Feature|important|
By default, tooltips are added for all columns no matter what column index is provided.
This behaviour can be overwritten since {{GVI|arma3|2.02}} by setting the control's property {{hl|tooltipPerColumn}} to [[true]].
See [[CT_LISTNBOX#tooltipPerColumn|CT_LISTNBOX documentation]].
}}
 
|s1= [[lnbSetTooltip]] [idc, [row, column], text]
 
|p1= idc: [[Number]] - control's IDC


| Sets tooltip on the item with the given row and column of the 2D listbox.<br><br>
|p2= row: [[Number]] - row where the tooltip should be shown
{{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=
|p3= column: [[Number]] - column where tooltip should be shown. By default it is set for every column, see description


|p1= [idc, [row, column], text]: [[Array]]  |PARAMETER1=
|p4= text: [[String]] - tooltip text
|p2= idc: [[Number]] |PARAMETER2=
|p3= [row, column]: [[Array]] |PARAMETER3=
|p4= row: [[Number]] |PARAMETER4=
|p5= column: [[Number]] - pretty much always 0, see description note |PARAMETER5=
|p6= text: [[String]] - tooltip to add |PARAMETER6=


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


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


|p21= ctrl: [[Control]] - control


| s2= ctrl [[lnbSetTooltip]] <nowiki>[</nowiki>[row, column], text] |SYNTAX2=
|p22= row: [[Number]] - row where the tooltip should be shown


|p21= ctrl: [[Control]]  |PARAMETER21=
|p23= column: [[Number]] - column where tooltip should be shown. By default it is set for every column, see description
|p22= <nowiki>[</nowiki>[row, column], text]: [[Array]] | Parameter22=
|p23= [row, column]: [[Array]] |PARAMETER23=
|p24= row: [[Number]] |PARAMETER24=
|p25= column: [[Number]] - pretty much always 0, see description note|PARAMETER25=
|p26= text: [[String]] - tooltip to add |PARAMETER26=


|r2= [[Nothing]] |RETURNVALUE2=
|p24= text: [[String]] - tooltip text


____________________________________________________________________________________________
|r2= [[Nothing]]


|x1= <code>[[lnbSetTooltip]] [1234, [1,0], "tip"];</code>|EXAMPLE1=
|x1= <sqf>lnbSetTooltip [1234, [1,0], "tip"];</sqf>
|x2= <code>_ctrl [[lnbSetTooltip]] <nowiki>[</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=
|x2= <sqf>_ctrl lnbSetTooltip [[3,0], "top"];</sqf>


| |MPBEHAVIOUR=  
|seealso= [[lbSetTooltip]] [[lnbSetData]] [[lnbAddArray]] [[lnbAddColumn]] [[lnbAddRow]] [[lnbClear]] [[lnbColor]] [[lnbCurSelRow]] [[lnbData]] [[lnbDeleteColumn]] [[lnbDeleteRow]] [[lnbGetColumnsPosition]] [[lnbPicture]] [[lnbSetColor]] [[lnbSetColumnsPos]] [[lnbSetCurSelRow]] [[lnbSetPicture]] [[lnbSetText]] [[lnbSetValue]] [[lnbSize]] [[lnbText]] [[lnbValue]]
____________________________________________________________________________________________
}}
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:51, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets tooltip on the item with the given row and column of CT_LISTNBOX.
By default, tooltips are added for all columns no matter what column index is provided.

This behaviour can be overwritten since Arma 3 logo black.png2.02 by setting the control's property tooltipPerColumn to true.

See CT_LISTNBOX documentation.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbSetTooltip [idc, [row, column], text]
Parameters:
idc: Number - control's IDC
row: Number - row where the tooltip should be shown
column: Number - column where tooltip should be shown. By default it is set for every column, see description
text: String - tooltip text
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl lnbSetTooltip [[row, column], text]
Parameters:
ctrl: Control - control
row: Number - row where the tooltip should be shown
column: Number - column where tooltip should be shown. By default it is set for every column, see description
text: String - tooltip text
Return Value:
Nothing

Examples

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

Additional Information

See also:
lbSetTooltip lnbSetData lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue

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