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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...