Dim r As Reflector
r.Target = ScrollView1
r.RunMethod2("setVerticalScrollBarEnabled", False, "java.lang.boolean")
r.RunMethod2("setOverScrollMode", 2, "java.lang.int" )
' 0 = OVER_SCROLL_ALWAYS, 1 = OVER_SCROLL_IF_CONTENT_SCROLLS, 2 = OVER_SCROLL_NEVER
Sub txtOffsetsCommentBox_Click
If LoadedFile = "" Then
CallPromptBox("You must save your program to write comments. Save now?", False, "ForceSave")
Return
End If
blnSetupInfo = True
SaveNameEdit = False
TypedString = txtOffsetsCommentBox(intOffsetsCommentBox).Text
QWERTYPanelBackground.visible = True
QWERTYPanelBackground.bringtofront
Dim txtinter As EditText
txtinter = Sender
intOffsetsCommentBox = txtinter.Tag
pnlExpandOffsets.Panel.Height = txtOffsetsCommentBox(intOffsetsCommentBox).Top + pnlExpandOffsets.Height
pnlExpandOffsets.Width = Activity.Width - 1
DoEvents
pnlExpandOffsets.Width = Activity.Width
pnlExpandOffsets.ScrollPosition = txtOffsetsCommentBox(intOffsetsCommentBox).Top
Dim StopScroll As Reflector
StopScroll.Target = pnlExpandOffsets
StopScroll.RunMethod2("setVerticalScrollBarEnabled", False, "java.lang.boolean")
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim Scroll As ScrollView
Scroll.Initialize(Activity.Height + 800)
Scroll.Panel.Color = Colors.White
Activity.AddView(Scroll, 0, 0, 100%x, 100%y)
Dim Stop As Reflector
Stop.Target = Scroll
Stop.RunMethod2("setVerticalScrollBarEnabled", False, "java.lang.boolean")
End Sub