Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Progress Bars

loadpoint
Beginner
412 Views
I wish to add a progress bar to a program. The program gets information from edit controls and performs a lengthly calculation using arrays. This occurs when the calculate button is pressed which is linked to a select case(id) command in a subroutine triggering the calculation. Ive set the min and max range and start values of the progress bar in the main program but do not know how get the progress bar to start and update with respect to the calculation.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
412 Views
See ThreadDlg sample on my home page. It does not use progress bar, but it explains (a) principle of spawning lengthy calculations. It would be simple to add a call to SendMessage(hProgress,PBM_STEPIT,0,0) or DlgSet(Dlg,IDC_PROGRESS,n,DLG_POSITION) from the worker routine. (Of course, you will have to pass/share either hProgress or Dlg variable between the routines).

Jugoslav
0 Kudos
Reply