Android Question setVerticalScrollbarPosition

Robert Valentino

Well-Known Member
Licensed User
Longtime User
when running some of the ScrollView routines by Klaus at this posting (https://www.b4x.com/android/forum/threads/scrollview-properties.40878/#content) I am getting the following error:


(RuntimeException) java.lang.RuntimeException: Method: setVerticalScrollbarPosition not found in: anywheresoftware.b4a.objects.ScrollViewWrapper$MyScrollView

these are the commands I am running

B4X:
      Try       
         Dim jo As JavaObject = sSubscriptions_List
         
         jo.RunMethod("setVerticalScrollbarPosition",      Array As Object (2))  ' position right
         jo.RunMethod("setVerticalFadingEdgeEnabled",      Array As Object (False))
         jo.RunMethod("setScrollBarDefaultDelayBeforeFade",    Array As Object (999999))
         jo.RunMethod("setScrollBarFadeDuration",        Array As Object (999999))           
       Catch
         Log(LastException)
'         cGenFuncs.LogMsg(LastException)
       End Try

NOW this is on an Android running 2.2 (but I believe some other users have been getting the same crash not sure what android version they are running)

BobVal
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…