DataGrid ios Scroller
Posted: Thu Dec 11, 2014 8:07 am
				
				Hi Guys,
I am currently having an issue with my native scrolling for a datagrid. I have a checkbox in each record which doesnt respond to the tap in till there is some sort of scrolling action first.
This started appearing after i Switched over to LiveCode 7.0
Here is parts of my code related to the scrolling:
Any ideas ?
Thanks !
Regards,
Kevvy
			I am currently having an issue with my native scrolling for a datagrid. I have a checkbox in each record which doesnt respond to the tap in till there is some sort of scrolling action first.
This started appearing after i Switched over to LiveCode 7.0
Here is parts of my code related to the scrolling:
Code: Select all
  if the environment is "mobile" then
      lock screen
      
      put mobileControls() into tControlList
      repeat for each line x in tControlList
         mobileControlDelete x
      end repeat
      
      set the unboundedHScroll of group "ScrollerGroup" to false
      set the unboundedVScroll of group "ScrollerGroup" to true
      
      iphoneControlCreate "scroller"
      put the result into sScrollerId
      
      iphoneControlSet sScrollerId, "visible", "true"
      iphoneControlSet sScrollerId, "canBounce", "false"
      iphoneControlSet sScrollerId, "pagingEnabled", "false"
      iphoneControlSet sScrollerId, "canScrollToTop", "true"
      iphoneControlSet sScrollerId, "vIndicator", "false"
      iphoneControlSet sScrollerId, "contentRect",  (0, 0, 688, 2500)  
      iphoneControlSet sScrollerId, "rect", "44,598,732,950"  
      unlock screen
   end if
on scrollerDidScroll OffsetX, OffsetY
   set the hScroll of group "ScrollerGroup" to OffsetX
   set the vScroll of group "ScrollerGroup" to OffsetY
end scrollerDidScroll
Thanks !
Regards,
Kevvy