Skip to content

Class: cWebProgressBar

Properties | Events | Methods | Index of Classes

The Web Framework progress bar control

Hierarchy

cObject > cWebBaseObject > cWebObject > cWebBaseUIObject > cWebBaseDEOServer > cWebBaseControl > cWebProgressBar

Show full hierarchy and direct subclasses

Library: Web Application Class Library

Package: cWebProgressBar.pkg

Description

The web framework features a progress bar that can be used as a control within panels (cWebPanel), views (cWebView) and dialogs (cWebModalDialog).

The cWebProgressBar class has piValue and piMaxValue web properties that control the current state. A Progress procedure is available that increments the value.

Object oWebProgressBar1 is a cWebProgressBar
    Set psLabel to "cWebProgressBar:"
    Set pbShowLabel to True
    Set piValue to 33
    Set piColumnSpan to 6
End_Object

Note that the progress bar's label is disabled by default and can be enabled using pbShowLabel.

Sample

Object oWebProgressBar1 is a cWebProgressBar
    Set piValue to 30
    Set piColumnSpan to 8
End_Object

Object oWebButton1 is a cWebButton
    Set piColumnSpan to 2
    Set psCaption to "Increment"
    Set piColumnIndex to 8

    Procedure OnClick
        Integer iVal

        WebGet piValue of oWebProgressBar1 to iVal

        Increment iVal
        If (iVal > 100) Move 0 to iVal

        WebSet piValue of oWebProgressBar1 to iVal
    End_Procedure
End_Object

Drag and Drop Support

This control can be used as a valid drop target by registering it as such in a cWebDragDropHelper object.

The supported actions for this control are: - C_WebDropOnControl

This allows the control to accept data dragged from elsewhere in the control (if configured that way) and can also be used to accept files when registered within a cWebDragDropFileHelper.