d.bernaert Posted November 4, 2021 Share Posted November 4, 2021 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 Link to comment Share on other sites More sharing options...
Sherzod Posted November 4, 2021 Share Posted November 4, 2021 53 minutes ago, d.bernaert said: When the user scrolls (i use the onselectionchange event of the grid), a procedure is called to create the preview. Hi, Does he navigate the grid using the keyboard? Link to comment Share on other sites More sharing options...
d.bernaert Posted November 4, 2021 Author Share Posted November 4, 2021 Yes, That is the main problem, he can scroll very fast in the list. Link to comment Share on other sites More sharing options...
Wilton Ergon Posted November 8, 2021 Share Posted November 8, 2021 try use showmask('wait') before Generate_mail and after hidemask Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now