Hi everyone!
We have tried this code to scroll a scrollview to a particular position, but we weren't able to do it:
sv.scrollposition doesn't work... why? It seems that sv.scrollview hasn't been executed! WHY????????? :sign0085::sign0085:
We have tried this code to scroll a scrollview to a particular position, but we weren't able to do it:
B4X:
Private Sub soft_HeightChanged (NewHeight As Int, OldHeight As Int)
'Msgbox("NEW: " & NewHeight & CRLF & "OLD: " & OldHeight,"")
Dim dif As Int
dif = Abs(NewHeight-OldHeight)
If NewHeight<OldHeight Then
'sv.SetLayout(sv.Left,sv.Top,sv.Width,sv.Height-dif)
'DoEvents
sv.Height=sv.Height-dif
sendButton.Top=sendButton.Top-dif
edit.Top=edit.Top-dif
'JumpToItem(GetSize)
Msgbox(dif,"")
DoEvents
sv.ScrollPosition=sv.ScrollPosition+dif
DoEvents
Log("pippi")
sv.Invalidate
Else
sv.Height=sv.Height+dif
sendButton.Top=sendButton.Top+dif
edit.Top=edit.Top+dif
End If
End Sub
sv.scrollposition doesn't work... why? It seems that sv.scrollview hasn't been executed! WHY????????? :sign0085::sign0085: