- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having trouble updating a progress bar in CVF 6.5. I can get the
initial bar set up but once I make the call, ret = DlgModal (dlg) , I
cannot adjust the position in another subroutine even though I am passing
the dialog variable, dlg, and all other modules and include files seem to be
in order. Following is the code fragment:
subroutine A
...
(this all works)
lret = DlgSet(dlg, IDC_PROGRESS1, .TRUE., DLG_ENABLE)
lret = DlgSet(dlg, IDC_PROGRESS1, 0 , DLG_RANGEMIN)
lret = DlgSet(dlg, IDC_PROGRESS1, 100 , DLG_RANGEMAX)
lret = DlgSet(dlg, IDC_PROGRESS1, 10 , DLG_POSITION )
lret = DlgSetSub(dlg,IDM_APPLY2, updateApply)
ret = DlgModal(dlg)
...
end subroutine A
(this subroutine occurs after the above fragment):
subroutine B
...
(and this does not show up)
lret = DlgSet(dlg, IDC_PROGRESS1, 50 , DLG_POSITION )
...
end subroutine A
initial bar set up but once I make the call, ret = DlgModal (dlg) , I
cannot adjust the position in another subroutine even though I am passing
the dialog variable, dlg, and all other modules and include files seem to be
in order. Following is the code fragment:
subroutine A
...
(this all works)
lret = DlgSet(dlg, IDC_PROGRESS1, .TRUE., DLG_ENABLE)
lret = DlgSet(dlg, IDC_PROGRESS1, 0 , DLG_RANGEMIN)
lret = DlgSet(dlg, IDC_PROGRESS1, 100 , DLG_RANGEMAX)
lret = DlgSet(dlg, IDC_PROGRESS1, 10 , DLG_POSITION )
lret = DlgSetSub(dlg,IDM_APPLY2, updateApply)
ret = DlgModal(dlg)
...
end subroutine A
(this subroutine occurs after the above fragment):
subroutine B
...
(and this does not show up)
lret = DlgSet(dlg, IDC_PROGRESS1, 50 , DLG_POSITION )
...
end subroutine A
Link Copied
2 Replies
- 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
John Termine had the answer to this problem. Apparently the only way to update dialog controls that are not updated via callback subroutine is by inserting a DLGFLUSH call after the DLGSET function. Thanks John!
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