lnbSetTooltip: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|descr= Sets tooltip on the item with the given row and column of [[CT_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 {{ | {{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] | |s1= [[lnbSetTooltip]] [idc, [row, column], text] | ||
|p1= idc: [[Number]] - | |p1= idc: [[Number]] - control's IDC | ||
|p2= row: [[Number]] - | |p2= row: [[Number]] - row where the tooltip should be shown | ||
|p3= column: [[Number]] - | |p3= column: [[Number]] - column where tooltip should be shown. By default it is set for every column, see description | ||
|p4= text: [[String]] - | |p4= text: [[String]] - tooltip text | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 23: | Line 27: | ||
|s2= ctrl [[lnbSetTooltip]] [<nowiki/>[row, column], text] | |s2= ctrl [[lnbSetTooltip]] [<nowiki/>[row, column], text] | ||
|p21= ctrl: [[Control]] - | |p21= ctrl: [[Control]] - control | ||
|p22= row: [[Number]] - | |p22= row: [[Number]] - row where the tooltip should be shown | ||
|p23= column: [[Number]] - | |p23= column: [[Number]] - column where tooltip should be shown. By default it is set for every column, see description | ||
|p24= text: [[String]] - | |p24= text: [[String]] - tooltip text | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf>lnbSetTooltip [1234, [1,0], "tip"];</sqf> | ||
|x2= < | |x2= <sqf>_ctrl lnbSetTooltip [[3,0], "top"];</sqf> | ||
|seealso= [[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]] | ||
}} | }} |
Latest revision as of 15:51, 8 November 2023
Description
- Description:
- Sets tooltip on the item with the given row and column of CT_LISTNBOX.
- 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