@warren - What Richard and Rob are saying is that if the columns don’t scroll independently, you are probably best off to just *visually* simulate columns through the formatting of your rows… Visually delineating the columns by color, or vertical lines in each row. Text in each column would be formatted when they are created to fit within their limitde areas (the height and width parameters when creating text will limit its size).
Rough code for the key onRowRender() that uses colored rectangles for positioning of simulated columns is below.
[code]
local function onRowRender( event )
local row = event.target
local rowGroup = event.view
local rowHeight=42
local rowWidth=620
local leftCol = display.newRect(0,0,rowWidth/3,rowHeight)
leftCol.strokeWidth = 3
leftCol:setStrokeColor(255,255,255)
leftCol:setFillColor(128,16,16,255)
leftCol.x = rowWidth/3 – Left third of row is one column
leftCol.y = rowHeight/2
rowGroup:insert( leftCol )
local midCol = display.newRect(0,0,rowWidth/3,rowHeight)
midCol.strokeWidth = 3
midCol:setStrokeColor(255,255,255)
midCol:setFillColor(16,128,16,255)
midCol.x = rowWidth/2 – Middle third of row is second column
midCol.y = rowHeight/2
rowGroup:insert( midCol )
local rightCol = display.newRect(0,0,rowWidth/3,rowHeight)
rightCol.strokeWidth = 3
rightCol:setStrokeColor(255,255,255)
rightCol:setFillColor(16,16,128,255)
rightCol.x = (rowWidth*2)/3 – Right third of row is last column
rightCol.y = rowHeight/2
rowGroup:insert( rightCol )
end
[/code] [import]uid: 79933 topic_id: 34966 reply_id: 139187[/import]