From 6c8785e9dd56fbee8913a991eabcde2ae3697056 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 11 Oct 2016 11:08:17 +0300 Subject: [PATCH] update ddoc --- src/dlangui/widgets/progressbar.d | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dlangui/widgets/progressbar.d b/src/dlangui/widgets/progressbar.d index d1b9ff29..5c0cba15 100644 --- a/src/dlangui/widgets/progressbar.d +++ b/src/dlangui/widgets/progressbar.d @@ -11,6 +11,15 @@ Synopsis: ---- import dlangui.widgets.progressbar; +auto pb = new ProgressBarWidget(); +// set progress +pb.progress = 300; // 0 .. 1000 +// set animation interval +pb.animationInterval = 50; // 50 milliseconds + +// for indeterminate state: set progress to PROGRESS_INDETERMINATE (-1) +pb.progress = PROGRESS_INDETERMINATE; + ---- Copyright: Vadim Lopatin, 2016