B4A Class ScrollingLabel_SideFade

Hi

This is a small mod of the ScrollingLabel view. Just adds the possibility to set side faders and its width in the Designer. They are two panels filled with gradient from transparent to the label color.

1610789519719.png


I think it can be applied exactly the same way in the BBScrollingLabel view, by copying, pasting and arranging a bit the simple sub "AddFade" that I've added, and the first two lines in the class that hold DesignerProperties.

Edit:

There was a bug in the code. The transparent color was set as ARGB(0, 255, 255, 255), but this way the gradient always 'comes from' white to the label color. If the color is, for example, RGB(123, 21, 200), the initial transparent color in the gradient must be ARGB(0, 123, 21, 200). Adding this Fredo's snippet to the class the issue is solved. The new class file is attached.
 

Attachments

  • ScrollingLabel_SideFade.bas
    5.2 KB · Views: 277
Last edited:
Top