07-11-2023 03:19
07-11-2023 03:19
In Versa 3 I made a clockface with a Textarea element in it. In that Textarea, new data are appended periodically. At a certain point in time, the content of the Textarea that goes beyond the screen display size (length of the watch screen) is no longer being seen of course. Is it possible to make the Textarea scrollable in a Clockface? Knowing that it is in the clockface and not an app?
Answered! Go to the Best Answer.
07-12-2023 14:16
07-12-2023 14:16
It was a nightmare to have this implemented successfully, so I abandoned the idea to an alternative to achieve what I want without much toil fighting against a limited and intransigent Fitbit SDK: I read the file into an array and displayed it sequentially in "chunks" onto the same Textarea "area" that fits the screen.
07-11-2023 05:07
07-11-2023 05:07
@francogrex - yes it's sort of possible but not in the same way.
You can use a scrollbar like in Windows or you could use a multiple tap mechanism, 2 to go up, 3 to go down.
Otherwise system functions take control most often, small scroll from the middle of the screen can also work but isn't really a reliable solution.
Author | ch, passion for improvement.
07-11-2023 05:09
07-11-2023 05:09
Thanks Guy_. Do you have links to examples, both a windows type scrollbar (preferable) or a taps?
07-11-2023 05:59
07-11-2023 05:59
@francogrex- Scroll bar example from SimpleClockPro with 2 tappable areas, one top and one bottom.
use topOne.onclick and bottomOne.onclick functions to detect taps
Example scroll bar in SimpleClockDuo
You can make short lines in a textarea by using
var LineFeed = " ";
You have to control how many lines are moved in each direction
Free flow text is more complicated.
Author | ch, passion for improvement.
07-11-2023 06:19
07-11-2023 06:19
no source code to see there unfortunately
07-11-2023 06:25
07-11-2023 07:39 - edited 07-11-2023 07:41
07-11-2023 07:39 - edited 07-11-2023 07:41
@francogrex- it depends on the watch model and screen sensitivity, but the mouse event is a way to scroll, though it is only the scroll detection you will need to arrange the text movement within the textarea..
Author | ch, passion for improvement.
07-12-2023 14:16
07-12-2023 14:16
It was a nightmare to have this implemented successfully, so I abandoned the idea to an alternative to achieve what I want without much toil fighting against a limited and intransigent Fitbit SDK: I read the file into an array and displayed it sequentially in "chunks" onto the same Textarea "area" that fits the screen.