Logo
  Progress Control
HomePage | Contact | Resume| Client List | EngineeringLinks | Embedded | Forum

Progress Pie Control
Written by: Michael Karas

This control is a round progress indicator control that can be placed on a form to act as a percent completion progress bar. The control can display in one of two styles, either as a colored pie slice or as the hands of a stopwatch type clock. The progress display control can be sized to any suitable size at design time. The center point of the control is placed at the center of the rectangular control region. the radus is adjusted to that the control image fits within the narrower of the width or height.

The picture below shows graphic styles that the progress control can display.



The image below shows the Visual Basic properties box for the Progress control. Seven specialized property settings, all of which are read/write at both design time and run time, provide the ability to customize the control to specific usages.



The following list describes these properties in detail:
  • ProgressPie.BackColor As OLE_COLOR - Specifies the color of the background rectangle of the control.


  • ProgressPie.ForeColor As OLE_COLOR - Specifies the foreground color of the progress pie or the clock hands.


  • ProgressPie.Style As eDisplayStyle - Controls the display style of the progress control. The choices available are:
    1. PieStyle
    2. ClkHands

  • ProgressPie.Percent As Long - Specifies the integer percentage complete of the progress control from 0 -> 100%.


  • ProgressPie.Max As Long - When there is a range of values that specify the none to full image of the progress control this property specifies the value for the upper end of the range.


  • ProgressPie.Min As Long - When there is a range of values that specify the none to full image of the progress control this property specifies the value for the lower end of the range.


  • ProgressPie.Value As Long - When there is a range of values that specify the none to full image of the progress control this property specifies the value current position within the range.



The control comes packaged with a simple test application program that permits the progress control behavior to be manipulated and studied. The picture below shows what this test application looks like:



Click the link below to download the Progress Pie Control source code and project files that have been packed into a ZIP archive file.

Download Progress Pie


(Note regarding the download: You may incorporate all or parts of this program into your own project. Keep in mind that you get this code free and as such Carousel Design Solutions has no responsibility to you, your customers, or anyone else regarding the use of this program code. No support or warranty of any kind can be provided. All liability falls upon the user of this code and thus you must judge the suitability of this code to your application and usage).



Email:  mkaras@carousel-design.com
Web Site:  www.carousel-design.com