Showing Progress Dialog in ArcGIS Desktop using ArcObjects?

المشرف العام

Administrator
طاقم الإدارة
I have an ArcGIS custom IGPFunction tool. I want to use the GP progress dialog not the progress bar at the bottom of the ArcGIS 10 window as I don't want people to interact with the map whilst it's processing.

In the Execute method you have an instance of ITrackCancel but I can't work out how to show the default GP progress dialog from there. I have this as code at the moment but it still doesn't show the dialog. Any ideas?

IStepProgressor pStepPro = (IStepProgressor)TrackCancel; pStepPro.MinRange = 0; pStepPro.StepValue = 1; pStepPro.Message = "Starting Import..."; pStepPro.Position = 0; pStepPro.Show(); ... pStepPro.Hide();

أكثر...
 
أعلى