Just in case it helps, here’s the code I’m using…
[code]local scrollView3 = widget.newTableView{
–objective scrollView
width = 300,
height = 187,
scrollWidth = 300,
scrollHeight = 700,
–left = 15,
–top = 65,
bgColor = {255,0,0,128},
–topPadding = 80,
–bottomPadding = 120,
maskFile=“mask-320x366.png” --“optionsBoard2.png”, 166, 176)
}
local objGroup = display.newGroup()
for i,v in pairs(objectiveData) do
–local objText = display.newText(v.message, 200, yPos, 260, 72, “GangofThree”, 10)
local objText = bmf.newString(bmglyph10, v.message)
–local objText = bmf.newParagraph(bmglyph10, v.message, 158)
print("type objText: "…type(objText))
dump(objText)
objText.x = 10
objText.y = yPos
print("objText.x: "…objText.x)
print("objText.y: "…objText.y)
print("objText.contentWidth: "…objText.contentWidth)
print("objText.contentHeight: "…objText.contentHeight)
–objText:setTextColor(255,0,0)
–localGroup:insert(objText)
objGroup:insert(objText)
yPos = yPos + objText.contentHeight
–[[local tickImg
if v.complete == true then
tickImg = display.newImageRect(“tick.png”, 8, 8)
else
tickImg = display.newImageRect(“cross.png”, 8, 8)
end
tickImg.x = (objText.x + objText.contentWidth) + 10
tickImg.y = (objText.y + objText.contentHeight/2)
print("tickImg.x: "…tickImg.x)
print("tickImg.y: "…tickImg.y)
–localGroup:insert(tickImg)
–objGroup:insert(tickImg)]]–
end
scrollView3:insert(objGroup)
[/code] [import]uid: 33275 topic_id: 26140 reply_id: 106532[/import]