{"name":"lnbSetTooltip","operator":null,"title":"lnbSetTooltip","type":"command","url":"https://community.bistudio.com/wiki/lnbSetTooltip","revid":349264,"updated":"2023-11-08T14:51:08Z","groups":["GUI Control - ListNBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.94"}],"since":{"game":"arma3","name":"Arma 3","version":"1.94"},"arma3_since":"1.94","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets tooltip on the item with the given row and column of CT_LISTNBOX.\n\n> [!IMPORTANT]\n> By default, tooltips are added for all columns no matter what column index is provided.\n> This behaviour can be overwritten since Arma 3 v2.02 by setting the control's property `tooltipPerColumn` to true.\n> See CT_LISTNBOX documentation.","syntaxes":[{"syntax":"lnbSetTooltip [idc, [row, column], text]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":"control's IDC","types":["Number"],"since":null,"text":"idc: Number - control's IDC"},{"name":"row","type":"Number","optional":false,"default":null,"description":"row where the tooltip should be shown","types":["Number"],"since":null,"text":"row: Number - row where the tooltip should be shown"},{"name":"column","type":"Number","optional":false,"default":null,"description":"column where tooltip should be shown. By default it is set for every column, see description","types":["Number"],"since":null,"text":"column: Number - column where tooltip should be shown. By default it is set for every column, see description"},{"name":"text","type":"String","optional":false,"default":null,"description":"tooltip text","types":["String"],"since":null,"text":"text: String - tooltip text"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, [row, column], text]","types":["Array"]}},{"syntax":"ctrl lnbSetTooltip [[row, column], text]","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":"control","types":["Control"],"since":null,"text":"ctrl: Control - control"},{"name":"row","type":"Number","optional":false,"default":null,"description":"row where the tooltip should be shown","types":["Number"],"since":null,"text":"row: Number - row where the tooltip should be shown"},{"name":"column","type":"Number","optional":false,"default":null,"description":"column where tooltip should be shown. By default it is set for every column, see description","types":["Number"],"since":null,"text":"column: Number - column where tooltip should be shown. By default it is set for every column, see description"},{"name":"text","type":"String","optional":false,"default":null,"description":"tooltip text","types":["String"],"since":null,"text":"text: String - tooltip text"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[[row, column], text]","types":["Array"]}}],"examples":[{"text":"```sqf\nlnbSetTooltip [1234, [1,0], \"tip\"];\n```","code":["lnbSetTooltip [1234, [1,0], \"tip\"];"]},{"text":"```sqf\n_ctrl lnbSetTooltip [[3,0], \"top\"];\n```","code":["_ctrl lnbSetTooltip [[3,0], \"top\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"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":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListNBox","Introduced with Arma 3 version 1.94","Scripting Commands"]}