Skip to Content
Learn Red ? Fundamentals of Red
book

Learn Red ? Fundamentals of Red

by Ivo Balbaert
May 2018
Beginner content levelBeginner
252 pages
6h 19m
English
Packt Publishing
Content preview from Learn Red ? Fundamentals of Red

Progress bar and slider

As their names suggest, these faces exist to indicate the increase or decrease of a certain quantity. A progress bar is passive, only displaying the status. A slider can be moved to indicate progress or a decrease, which is an on-change event. Both faces keep the quantity in /data as a percent! value (such as 25 %). If you specify it as a float between 0.0 and 1.0, you will need to convert this value with to-percent.

Here are some examples of their use:

Here is the code to do that:

;-- see Chapter09/progress-slider.red:view [    across    p1: progress 100x20 10%    ;-- horizontal progress bar:    p2: progress 20x100 15%    ;-- vertical ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

How I Built a Personal Board of Directors With GenAI

How I Built a Personal Board of Directors With GenAI

Vipin Gupta
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally
Why AI Demands a New Breed of Leaders

Why AI Demands a New Breed of Leaders

Faisal Hoque, Thomas Davenport, Erik Nelson

Publisher Resources

ISBN: 9781789130706Supplemental Content