LM.GUI.ImageTextList(width, height, msg)
Version added:
12.2
Creates a new LM_ImageTextList object
Argument | Type | Description | Default | Version added |
width | int32 | The width in pixels | 12.2 | |
height | int32 | The height in pixels | 12.2 | |
msg | int32 | The message value to send when the widget is changed by the user | 0 | 12.2 |
Return type: LM_ImageTextList
-- **************************************************
-- Dialog
-- **************************************************
local SZ_TextListTestDialog = {}
SZ_TextListTestDialog.MSG = MOHO.MSG_BASE
function SZ_TextListTestDialog:new(moho)
local d = LM.GUI.SimpleDialog("Text List Test", SZ_TextListTestDialog)
local l = d:GetLayout()
d.moho = moho
d.textList = LM.GUI.ImageTextList(200, 100, self.MSG)
l:AddChild(d.textList)
d.textList:SetAllowsMultipleSelection(true)
for i=0, 20 do
d.textList:AddItem("Option "..i)
end
d.textList:ScrollItemIntoView(10, true)
return d
end

Result