Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

how to lock a scrolling list????
Started by iqradar12 Jan 31 2013 05:22 AM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

iqradar12

[GLOBAL: userInfoPane.html]
iqradar12
  • Observer

  • 15 posts
  • Corona SDK

data={}
data[1] = {}
data[1].title = "Set Alarm"
data[2] = {}
data[2].title = "Sound"
data[3] = {}
data[3].title = "Alarm On/Off"

myList = tableView.newList{
data=data,
default="listItemBg.png",
over="listItemBg_over.png",
onRelease=listButtonRelease,

top=topBoundary,
bottom=bottomBoundary,

callback = function( row )

if count == 1 then
g = display.newGroup()
title1 = display.newText( row.title, 20, 0, native.systemFontBold, 20 )
title1:setTextColor(0, 0, 0)
g:insert(title1)
title1.y = 35

count = count + 1
return g

else if count == 2 then

f = display.newGroup()
title2 = display.newText( row.title, 20, 0, native.systemFontBold, 20 )
title2:setTextColor(0, 0, 0)
f:insert(title2)
title2.y = 35

else
i = display.newGroup()
title3 = display.newText( row.title, 20, 0, native.systemFontBold, 20 )
title3:setTextColor(0, 0, 0)
i:insert(title3)
title3.y = 35

return i
end
end
end
}

local listBackground = display.newRect( 0, 0, myList.width, myList.height )
listBackground:setFillColor(255,255,255)
myList:insert(1,listBackground)
myList.x = 0
myList.y = 30

group:insert(myList)

this is my code for creating list. how can i lock my list from scrolling?? i have made list through tableview.lua
uid: 209696 topic_id: 35507 reply_id: 335507


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,895 posts
  • Enterprise

closing due to being a duplicate post.
uid: 199310 topic_id: 35507 reply_id: 141135



[topic_controls]
[/topic_controls]