lbSetTooltip: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.58|Game version=
|0.58


|gr1= GUI Control - ListBox |GROUP1=
|gr1= GUI Control - ListBox


| Sets tooltip for item with given index of the listbox or combobox with id idc of the topmost user dialog to the given data. |DESCRIPTION=
| Sets tooltip for item with given index of the listbox or combobox with id idc of the topmost user dialog to the given data.


| '''lbSetTooltip''' [idc, index, tooltip] |SYNTAX=
| '''lbSetTooltip''' [idc, index, tooltip]


|p1= [idc, index, tooltip]: [[Array]] |PARAMETER1= 
|p1= [idc, index, tooltip]: [[Array]]


|p2= idc: [[Number]] |PARAMETER2=
|p2= idc: [[Number]]


|p3= index: [[Number]] |PARAMETER3=
|p3= index: [[Number]]


|p4= tooltip: [[String]] |PARAMETER4=
|p4= tooltip: [[String]]


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


|s2= control '''lbSetTooltip''' [index, tooltip] |SYNTAX2=
|s2= control '''lbSetTooltip''' [index, tooltip]


|p21= control: [[Control]]  |PARAMETER21=
|p21= control: [[Control]]  |PARAMETER21=
Line 31: Line 31:
|p24= tooltip: [[String]]  |PARAMETER24=
|p24= tooltip: [[String]]  |PARAMETER24=


|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]]


|x1= <code>[[lbSetTooltip]] [101, 1, "tooltip"];</code>|EXAMPLE1=
|x1= <code>[[lbSetTooltip]] [101, 1, "tooltip"];</code>


|x2= <code>_control [[lbSetTooltip]] [0, "another tooltip"];</code>|EXAMPLE2=
|x2= <code>_control [[lbSetTooltip]] [0, "another tooltip"];</code>


| [[lnbSetTooltip]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |SEEALSO=
| [[lnbSetTooltip]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 02:02, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets tooltip for item with given index of the listbox or combobox with id idc of the topmost user dialog to the given data.
Groups:
GUI Control - ListBox

Syntax

Syntax:
lbSetTooltip [idc, index, tooltip]
Parameters:
[idc, index, tooltip]: Array
idc: Number
index: Number
tooltip: String
Return Value:
Nothing

Alternative Syntax

Syntax:
control lbSetTooltip [index, tooltip]
Parameters:
control: Control
[index, tooltip]: Array
index: Number
tooltip: String
Return Value:
Nothing

Examples

Example 1:
lbSetTooltip [101, 1, "tooltip"];
Example 2:
_control lbSetTooltip [0, "another tooltip"];

Additional Information

See also:
lnbSetTooltiplbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetValuelbSizelbSortlbSortByValuelbTextlbValue

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

Notes

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section

Posted on August 9, 2017 - 13:03 (UTC)
IT07
[ Arma 3 v1.75.142535 ] if you want to put linebreaks into a tooltip, use this method:
format [ "%1,%2%3", "hi", parseText "\n", "my name is Will" ]