{"name":"lbSetTooltip","operator":null,"title":"lbSetTooltip","type":"command","url":"https://community.bistudio.com/wiki/lbSetTooltip","revid":364888,"updated":"2024-06-29T14:38:30Z","groups":["GUI Control - ListBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.58"}],"since":{"game":"arma3","name":"Arma 3","version":"0.58"},"arma3_since":"0.58","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"lbSetTooltip [idc, index, tooltip]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"idc: Number"},{"name":"index","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"index: Number"},{"name":"tooltip","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"tooltip: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, index, tooltip]","types":["Array"]}},{"syntax":"control lbSetTooltip [index, tooltip]","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"index","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"index: Number"},{"name":"tooltip","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"tooltip: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[index, tooltip]","types":["Array"]}}],"examples":[{"text":"```sqf\nlbSetTooltip [101, 1, \"tooltip\"];\n```","code":["lbSetTooltip [101, 1, \"tooltip\"];"]},{"text":"```sqf\n_control lbSetTooltip [0, \"another tooltip\"];\n```","code":["_control lbSetTooltip [0, \"another tooltip\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lbTooltip","lnbSetTooltip","lbAdd","lbClear","lbColor","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbSelection","lbSetColor","lbSetCurSel","lbSetData","lbSetPicture","lbSetSelected","lbSetValue","lbSize","lbSort","lbSortByValue","lbText","lbValue"],"notes":[{"user":"Nelis75733126","date":"2017-08-09T13:03:00Z","text":"if you want to put linebreaks into a tooltip, use this method:\n\n```sqf\nformat [\"%1,%2%3\", \"Hi\", parseText \"\\n\", \"my name is Will\"];\n```"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListBox","Introduced with Arma 3 version 0.58","Scripting Commands"]}