Mike Posted April 3, 2018 Posted April 3, 2018 How can a timer be disabled on a frame when the frame lost focus? function blur(sender, e, eOpts) { var me=sender; ajaxRequest(me, '_hide', []); } In Ajax event of frame is the following. if EventName = '_hide' then begin tiRefreshMonitor.Enabled := False; tiRefreshQueries.Enabled := False; end; However this doesn't work. Any suggestions how to get this working? Quote
Sherzod Posted April 3, 2018 Posted April 3, 2018 Hi, Which build are you using? Can you make a simple testcase for this? Quote
Mike Posted April 4, 2018 Author Posted April 4, 2018 Hi,I am using version 1.0.0.1425. Got already a working solution. Ajax event on Mainform. if EventName = 'deactivate' then begin TfraTestFrame(MainForm.FindComponent('fraTestFrame')).TimerStop(True); end; Quote
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.