Jump to content

Wait for a process to complete


d.bernaert

Recommended Posts

Hi,

I have the following problem.

I have a grid with mail messages on the left, on the right a preview of the mail is shown.

When the user scrolls (i use the onselectionchange event of the grid), a procedure is called to create the preview.

This can take some millisecons because the eml file needs to be read by an external library and a html file with attachments is generated.

When the user scrolls fast in the list, i sometimes get an error message that the html file is not accessible by the uniURLFrame.

This is the procedure that is run:

if VwMessages.FieldByName('Message_type').AsInteger <> 1
then begin
             AUrlMail := Utils.Generate_mail(Destination, False);
              PreviewFrame.URL := AUrlMail;
          end
 else PreviewFrame.URL := '';

The procedure that generates the html file with the attachments is Generate_mail.

Is there a way to show a mask with onselectionchange or something?

Thx

image.thumb.png.838f0a9d62ae64de20c4d57ce1737482.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...