Create the Class (Class CountingLabel Inherits Label) manually, then
Select it in the Navigation pane,
Copy / Paste each atom (above)
and you will be done.
Now, with the correct license, you may try to paste the whole in a .bas (use the correct file extension for git files) and drop it into the navigation pane (not tested).
Edit:
You do not disclore the source (provenance) of the code above, so I can only guess an how to do.
Oh I just responded to your email and did not understand your question.
You should be able to do what @Emile Schwarz said. Create the class, set the Super to Label, then click the Interfaces button and choose AnimationKit.ValueAnimator. Then you can copy and paste each method into your navigator/sidebar. You may have two AnimationStep methods at that point, so delete the empty one.
Its just a quick and dirty example of what the ValueAnimator can do, Id have packaged it up as a usable class if I expected people to actually use it for something.
so now i set up the subclass as you wrote, dragged an instance to my window and then?
Do i have to create a value animator?
if i run, i get:
CountingLabel.Value, line 1
Not enough arguments: missing Double value for parameter “Time”
If Task <> Nil And Not (Task.Completed Or Task.Cancelled) Then
CountingLabel.Value, line 1
Undefined operator. Type Int32 does not define “Or” with type Boolean
If Task <> Nil And Not (Task.Completed Or Task.Cancelled) Then
Ah, bad example code. Change If Task <> Nil And Not (Task.Completed Or Task.Cancelled) Then to the simpler If Task <> Nil Then because it’s perfectly safe to cancel a task that is already finished or cancelled.
No, that won’t work because you’re setting Value up to 100, then immediately setting it back down to 0. The second action cancels the first, and since the value hasn’t actually changed yet, nothing actually happens.
Try setting CountingLabel1.Text = "100" first so the animation is avoided and the value updated immediately.