Class: cStatusPanel [Abstract]
Properties | Events | Methods | Index of Classes
Abstract class that can be used to create status panels
Hierarchy
cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseContainer > DfBaseDialog > DfBasePanel > DfBaseToolPanel > FloatingPanel > cStatusPanel
Show full hierarchy and direct subclasses
Library: Windows Application Class Library
Package: cStatusPanel.pkg
Description
This is an abstract class that can be used to create status panels. The interface at this level is very simple. You can start, stop, request a cancel and allow the object to paint.
Look at cProcessStatusPanel.pkg to see how this is used.
Creating your own Status Panel objects
If a developer wishes to create a custom panel, he/she should use StatPnl.Pkg as a template. This panel can be visually modeled and changed any way you wish. Just save your new custom panel with a different file and object name and direct your status panel request to the new object.
If the new panel changes the interface and updates objects that are not currently defined, you want to make sure you send the message ProcessEvents after you've updated the object. This allows the object to paint when inside of a tight loop. For example, if you wanted to add a progress bar (cProgressBar) you would want to Send ProcessEvents after you update the progress bar.
e.g.
Procedure UpdateStatusBar
Send DoAdvance of oProgressBar
Send ProcessEvents
End_Procedure
Of course, if you use the standard interfaces in status bar and your forward send these messages this will be done for you.