donlego Posted May 21, 2022 Share Posted May 21, 2022 hello i have uniurlframe load pdf file about +- 10 page how to know if uniurlframe load the full page /finish load i want to show unimask on the form before load and hide the mask after the file finish until all page Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 21, 2022 Share Posted May 21, 2022 Hello, Have you seen related demos? Quote Link to comment Share on other sites More sharing options...
donlego Posted May 23, 2022 Author Share Posted May 23, 2022 sory can you tell me, which demo thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 23, 2022 Share Posted May 23, 2022 Hello, Okay. You can use UniURLFrame1.OnFrameLoaded event. Quote Link to comment Share on other sites More sharing options...
donlego Posted May 24, 2022 Author Share Posted May 24, 2022 Onloadedform imediately hide the mask , Form1.showmask; Try Do_print_frame(); Finally Form1.hidemask(); End; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 24, 2022 Share Posted May 24, 2022 6 minutes ago, donlego said: Onloadedform On 5/23/2022 at 9:22 AM, Sherzod said: OnFrameLoaded ? Quote Link to comment Share on other sites More sharing options...
donlego Posted May 24, 2022 Author Share Posted May 24, 2022 Sory uniurlframe onframeloaded, i mean, the hidemask imediate run before the procedure do_print_frame() Quote Link to comment Share on other sites More sharing options...
donlego Posted May 24, 2022 Author Share Posted May 24, 2022 procedure TFrmPostBayar.UniURLFrame1FrameLoaded(Sender: TObject); begin inherited; if UniURLFrame1.URL<>'' then begin FrmPostBayar.ShowMask(''); try // long proses to preview UniURLFrame1.JSInterface.JSCode ('Ext.defer(function(){'#1'.iframe.contentWindow.print()}, 10);'); finally FrmPostBayar.HideMask; end; end; end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.