eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RoundProgressIndicator':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: RoundProgressIndicator


Inheritance:

   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

Description:


RoundProgressIndicator provides the same functionality as
its superClass, ProgressIndicator; however, the percentage
display is in a round fashion.

copyright

COPYRIGHT (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.

Instance protocol:

accessing
o  borderWidth
get the border width

o  borderWidth: aWidth
set the border width

drawing
o  redraw
redraw the percentage arc and optional percentage string

initialization
o  initialize


Examples:


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


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Wed, 25 Dec 2024 08:27:58 GMT