- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear colleagues,
I have written a Windows dialog-based application on the basis of the Whizzy example from the CVF 6.5 samples. I am performing sophisticated calculations described by my own subroutine, and want that each time my subroutine calculates a new point the progress bar in the dialog box be updated. However this does not happen: the progress bar first shows 0%, then (when ALL the calculations are finished) it is changed to 100%. (I am also unable to change any of the static text controls of the dialog until the program stops). Could you please help me to get it working smoothly? Here is my code for the progress bar:
retlog = DlgSet(dlg, IDC_PROGRESS, 0, DLG_RANGEMIN) retlog = DlgSet(dlg, IDC_PROGRESS, 500, DLG_RANGEMAX) retlog = DlgSet(dlg, IDC_PROGRESS, 0) do i = 1, 500 retlog = DlgSet(dlg, IDC_PROGRESS, i) call PointCalc(i,[other parameters]) enddo
Message Edited by Dan789 on 04-19-2005 10:20 AM
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compiling Fortran...
Error: This name does not have a type, and must have an explicit type. [GETDLGITEM]
Error: This name does not have a type, and must have an explicit type. [SENDMESSAGE]
Message Edited by Dan789 on 04-19-2005 01:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error: This name does not have a type, and must have an explicit type. [MAKELONG]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But after this there is still something missing:
Compiling Fortran...
Warning: Variable HWND is used before its value has been defined.
In fact, HWND (which is used in the first line of the code kindly provided by Paul-Curtis)has not been defined in my program. My dialog was initialized by
recursive subroutine DoDialog( dlgParent, id, callbacktype )
without any handlers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
use dfwin
use dflogm
use Yourglobals
integer id, callbacktype
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page