Dialogbox flickering on UIDoc.Refresh

I have 2 dialogboxes that displays progress to the user as they are performing an operation.

The first one is an export routine, and that works fine. It refreshes the dialogbox without any flicker.

However, when I then call up the send dialog which processes an import routine, it will start to flicker as it updates. This only happens though when the document the dialogbox is called from is closed down and reopened. If the export is run and then the import is run, without closing the underlying document, it works, and there’s no flicker.

This doesn’t make any sense, as I’m closing and reopening the document through code (using UIDoc.Close and Workspace.EditDocument)… although the same NotesDocument object still exists.

This is very odd… could it be some of the fields on my underlying document causing this? Or is this just another one of Notes annoying little “features”?

Thanks for any help,

Ben

Subject: RE: Dialogbox flickering on UIDoc.Refresh

I don’t know why it’s doing that, but is it actually necessary to refresh the dialog to show your progress bar? Can’t you just set the fields that display the information you want to show?

Subject: FIXED: Dialogbox flickering on UIDoc.Refresh

Thanks for the response.

I tried removing the refresh, but unfortunately it didn’t update the progress bars on my dialogbox (the progress bars are merely fields that display blocks as the value of a numeric field increases).

I noticed though, that the document count was updating, so I changed the progress bars to be computed to themselves rather than computing a formula based on a numeric value. I then modified my status refresh routine to populate that field with the blocks and it worked a treat. No more flickering.

Many thanks,

Ben