LM_ImageTextList:SetSelItem(id, redraw, addToSelection)

Version added: 12.2
Up to 14.1, this method doesn't work!

Arguments:

Name Type Description Default Ver
id int32 12.2
redraw bool true 12.2
addToSelection bool false 12.2

Return value:

void
Up to Moho 14.1 (included), this method doesn't allow to select items by means of IDs. However, there is a workaround that hopefully should fulfill most situations consisting of using SetSelItem(label, redraw, addToSelection) method instead in, e.g., the following way: d.myTextList:SetSelItem(d.myTextList:GetItem(0), true, false)) which with, in this case, you'll get list's first item selected by ID, indirectly, but working as expected.

Search results

Usage of 'SetSelItem' is found in the following scripts:

<< Back to LM_ImageTextList