- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can start the Dialog correctly from the Menue: Edit -> load processdata.
In 'Init_Windo.f' stands, the then the Routine 'Dialog_process' is called.
But when I call then Routine 'Dialog_process' direct from main.f, the dialog
comes up, but I cannot change a Value - the diaolg is dead.
Can you help me ?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You cannot run a modeless dialog from QuickWin's PROGRAM (or any routine it calls). You can do that from a menu callback though.
Depending on what you want to achieve (it isn't clear from the code), you can:
1) Run it as a modal dialog (but you cannot do a calculation simultaneously in that case)
2) Run it from a callback. You can sync the callback and calculation (in PROGRAM or its descendant routine e.g. using a global logical variable):
Somewhere in the menu/dialog callback, set up the bCalcStart to .true. -- the calculation will start running in the secondary thread.
3) You can use similar technique as in 2), but you can run the dialog (more precisely, invoke the menu callback) automatically using subclassing technique as shown in QWToolbar sample.
Jugoslav
Depending on what you want to achieve (it isn't clear from the code), you can:
1) Run it as a modal dialog (but you cannot do a calculation simultaneously in that case)
2) Run it from a callback. You can sync the callback and calculation (in PROGRAM or its descendant routine e.g. using a global logical variable):
program x
logical bCalcStart
common bCalcStart
...
bCalcStart = .false.
...
do while (.true.)
if (bCalcStart) then
do i=1,100000000
...
end do
bCalcStart = .false.
else
call sleepqq(0)
end if
end do
end program x
Somewhere in the menu/dialog callback, set up the bCalcStart to .true. -- the calculation will start running in the secondary thread.
3) You can use similar technique as in 2), but you can run the dialog (more precisely, invoke the menu callback) automatically using subclassing technique as shown in QWToolbar sample.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone have any suggestions as to a good book to learn how to port some old Fortran progams into Windows using Intel Fortran?
Is Lawrence's book good for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the Lawrence book is fine. The Visual Studio interface is a bit different but the programming techniques are identical.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page