|
Class: RoundProgressIndicator
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--ProgressIndicator
|
+--RoundProgressIndicator
- Package:
- stx:libwidg3
- Category:
- Views-Misc
- Version:
- rev:
1.11
date: 2023/08/14 12:54:42
- user: matilk
- file: RoundProgressIndicator.st directory: libwidg3
- module: stx stc-classLibrary: libwidg3
RoundProgressIndicator provides the same functionality as
its superClass, ProgressIndicator; however, the percentage
display is in a round fashion.
copyrightCOPYRIGHT (c) 1997 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
borderWidth
-
get the border width
-
borderWidth: aWidth
-
set the border width
drawing
-
redraw
-
redraw the percentage arc and optional percentage string
initialization
-
initialize
-
getting progress from a model:
|model top p h|
model := 0 asValue.
top := StandardSystemView new.
top extent:100@100.
top label:'Progress'.
p := RoundProgressIndicator in:top.
p model:model.
p level:-1.
p origin:(0.1@0.1) corner:(0.9@0.9).
top open.
[
1 to:100 do:[:val |
(Delay forSeconds:0.05) wait.
model value:val
]
] fork
|
|