Dynamically turning on and off DataGrid Scroll Bar

Michael Doub mike at doub.com
Sat Nov 5 15:29:14 EDT 2011


I am trying to dynamically turn on and off a data grid scroll bar for testing a mobile app and am having difficulty.   Is there another property that I should be setting?

on preOpenCard
   if the environment is "mobile" then
      set the vScrollbar of group "DataGrid" to false
      setup_scroller
   else
      set the vScrollbar of group "DataGrid" to true
   end if
   put create_the_data ("Contacts") into tdata
   set the dgData of group "DataGrid" to tdata
end preOpenCard


More information about the use-livecode mailing list