I’m trying to over-ride protected boolean navigationMovement(int dx,int dy,int status,int time) in a MainScreen subclass and I have a PictureScrollField added to it. If I do not over-ride it, then the PictureScrollField works normally but when I do over-ride it, then the currentImageIndex stays fixed at zero and it doesn’t scroll! What can I do to prevent this anomaly or is there another (better) way to do this? I just want to change the title of a field with the current image of PictureScrollField. In other words, I need to get the currentImageIndex for dynamically changing the data visible on the screen. The Field is a custom one so I could not use label/callout features for a ScrollEntry.
EDIT: I’m over-riding protected boolean navigationMovement(int dx,int dy,int status,int time) and returning false but that wasn’t working.
I had to work around the default behaviour of
PictureScrollFieldas follows:It’s weird, though, that despite returning
false(which means that the event was not consumed),PictureScrollFieldwasn’t handling the navigation movements! Anyway, manually setting thecurrentImageIndexworks equally well!